pouluo commited on
Commit
fbb36c2
·
1 Parent(s): afd490e

Fix: Do not strip spaces from streaming chunks to prevent words from merging

Browse files
Files changed (1) hide show
  1. gemini_web2api.py +1 -1
gemini_web2api.py CHANGED
@@ -575,7 +575,7 @@ def clean_gemini_text(text: str) -> str:
575
  r'https?://googleusercontent\.com/(?:image_generation_content|image_retrieval|image_collection)[/\w]*\d*',
576
  '', text
577
  )
578
- return text.strip()
579
 
580
 
581
  def _scan_complete_wrb_frames(buf: str) -> list:
 
575
  r'https?://googleusercontent\.com/(?:image_generation_content|image_retrieval|image_collection)[/\w]*\d*',
576
  '', text
577
  )
578
+ return text
579
 
580
 
581
  def _scan_complete_wrb_frames(buf: str) -> list: