summaryrefslogtreecommitdiffstats
path: root/g4f
diff options
context:
space:
mode:
Diffstat (limited to 'g4f')
-rw-r--r--g4f/Provider/GeminiProChat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/Provider/GeminiProChat.py b/g4f/Provider/GeminiProChat.py
index 9c2d1fb2..679242f3 100644
--- a/g4f/Provider/GeminiProChat.py
+++ b/g4f/Provider/GeminiProChat.py
@@ -55,7 +55,7 @@ class GeminiProChat(AsyncGeneratorProvider):
raise RateLimitError(f"Response {response.status}: Rate limit reached")
await raise_for_status(response)
async for chunk in response.content.iter_any():
- yield chunk.decode()
+ yield chunk.decode(errors="ignore")
def generate_signature(time: int, text: str, secret: str = ""):
message = f'{time}:{text}:{secret}';