summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/GptTalkRu.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g4f/Provider/GptTalkRu.py2
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