From 8894160f428e4cc1d3946409859ade8d31dfc05c Mon Sep 17 00:00:00 2001 From: H Lohaus Date: Sat, 6 Apr 2024 23:52:31 +0200 Subject: Update GeminiProChat.py --- g4f/Provider/GeminiProChat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g4f/Provider/GeminiProChat.py') 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}'; -- cgit v1.2.3