diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-04-06 23:55:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-06 23:55:30 +0200 |
commit | 5dcbf147b626d339b5e8e12e0cf8360f05dfebc6 (patch) | |
tree | 336686a65aa4ed0d17b2ecd1d35d24904957c5fe | |
parent | Update GeminiPro.py (diff) | |
download | gpt4free-5dcbf147b626d339b5e8e12e0cf8360f05dfebc6.tar gpt4free-5dcbf147b626d339b5e8e12e0cf8360f05dfebc6.tar.gz gpt4free-5dcbf147b626d339b5e8e12e0cf8360f05dfebc6.tar.bz2 gpt4free-5dcbf147b626d339b5e8e12e0cf8360f05dfebc6.tar.lz gpt4free-5dcbf147b626d339b5e8e12e0cf8360f05dfebc6.tar.xz gpt4free-5dcbf147b626d339b5e8e12e0cf8360f05dfebc6.tar.zst gpt4free-5dcbf147b626d339b5e8e12e0cf8360f05dfebc6.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/Provider/GptTalkRu.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/Provider/GptTalkRu.py b/g4f/Provider/GptTalkRu.py index e8c2ffa2..6a59484f 100644 --- a/g4f/Provider/GptTalkRu.py +++ b/g4f/Provider/GptTalkRu.py @@ -48,7 +48,7 @@ class GptTalkRu(AsyncGeneratorProvider): async with session.post(f"{cls.url}/gpt2", json=data, proxy=proxy) as response: await raise_for_status(response) async for chunk in response.content.iter_any(): - yield chunk.decode() + yield chunk.decode(errors="ignore") def encrypt(public_key: str, value: str) -> str: from Crypto.Cipher import PKCS1_v1_5 |