From 5dcbf147b626d339b5e8e12e0cf8360f05dfebc6 Mon Sep 17 00:00:00 2001 From: H Lohaus Date: Sat, 6 Apr 2024 23:55:30 +0200 Subject: Update GptTalkRu.py --- g4f/Provider/GptTalkRu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g4f/Provider') 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 -- cgit v1.2.3