Commit 079bd8dc authored by Your Name's avatar Your Name

Add debug output showing raw vs escaped content

parent 31b6480e
...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment