Spaces:
Sleeping
Sleeping
Fix: Do not strip spaces from streaming chunks to prevent words from merging
Browse files- 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
|
| 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:
|