bluewinliang commited on
Commit
4f7eefe
·
verified ·
1 Parent(s): 7099da4

Update proxy_handler.py

Browse files
Files changed (1) hide show
  1. proxy_handler.py +1 -1
proxy_handler.py CHANGED
@@ -41,7 +41,7 @@ class ProxyHandler:
41
  # Remove specific metadata patterns
42
  cleaned_text = re.sub(r'true" duration="\d+">\s*Thought for \d+ seconds', '', cleaned_text)
43
  # Remove leading markdown quote symbols
44
- cleaned_text = re.sub(r'^\s*>\s*', '', cleaned_text, flags=re.MULTILINE)
45
  # Remove "Thinking..." headers
46
  cleaned_text = cleaned_text.replace("Thinking…", "")
47
  # Final strip to clean up residual whitespace
 
41
  # Remove specific metadata patterns
42
  cleaned_text = re.sub(r'true" duration="\d+">\s*Thought for \d+ seconds', '', cleaned_text)
43
  # Remove leading markdown quote symbols
44
+ # cleaned_text = re.sub(r'^\s*>\s*', '', cleaned_text, flags=re.MULTILINE)
45
  # Remove "Thinking..." headers
46
  cleaned_text = cleaned_text.replace("Thinking…", "")
47
  # Final strip to clean up residual whitespace