mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-25 04:01:52 +03:00
Update GeminiProChat.py
This commit is contained in:
parent
c85765925f
commit
8894160f42
@ -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}';
|
||||
|
Loading…
Reference in New Issue
Block a user