Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
coderai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexlab
coderai
Commits
079bd8dc
Commit
079bd8dc
authored
Mar 16, 2026
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add debug output showing raw vs escaped content
parent
31b6480e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
coderai
coderai
+6
-0
No files found.
coderai
View file @
079bd8dc
...
@@ -4976,7 +4976,13 @@ async def stream_chat_response(
...
@@ -4976,7 +4976,13 @@ async def stream_chat_response(
print(f"\n{'
=
'*80}")
print(f"\n{'
=
'*80}")
print(f"=== FULL GENERATED TEXT (DEBUG) ===")
print(f"=== FULL GENERATED TEXT (DEBUG) ===")
print(f"{'
=
'*80}")
print(f"{'
=
'*80}")
# Show both raw (actual) content and escaped representation
print(f"--- RAW CONTENT (actual newlines shown as lines) ---")
print(generated_text)
print(f"--- END RAW CONTENT ---")
print(f"--- ESCAPED CONTENT (repr() - shows \\n for newlines) ---")
print(repr(generated_text))
print(repr(generated_text))
print(f"--- END ESCAPED CONTENT ---")
print(f"{'
=
'*80}\n")
print(f"{'
=
'*80}\n")
# Check for tool calls in complete output (for API response format)
# Check for tool calls in complete output (for API response format)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment