diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-04-06 23:52:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-06 23:52:31 +0200 |
commit | 8894160f428e4cc1d3946409859ade8d31dfc05c (patch) | |
tree | 744ac59017ac944cf666549b83d6bfc0ad0e496d /g4f/Provider/GeminiProChat.py | |
parent | Update FreeChatgpt.py (diff) | |
download | gpt4free-8894160f428e4cc1d3946409859ade8d31dfc05c.tar gpt4free-8894160f428e4cc1d3946409859ade8d31dfc05c.tar.gz gpt4free-8894160f428e4cc1d3946409859ade8d31dfc05c.tar.bz2 gpt4free-8894160f428e4cc1d3946409859ade8d31dfc05c.tar.lz gpt4free-8894160f428e4cc1d3946409859ade8d31dfc05c.tar.xz gpt4free-8894160f428e4cc1d3946409859ade8d31dfc05c.tar.zst gpt4free-8894160f428e4cc1d3946409859ade8d31dfc05c.zip |
Diffstat (limited to 'g4f/Provider/GeminiProChat.py')
-rw-r--r-- | g4f/Provider/GeminiProChat.py | 2 |
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}'; |