XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Update GptTalkRu.py

5dcbf147
H Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified g4f/Provider/GptTalkRu.py +1 -1
@@ -48,7 +48,7 @@ class GptTalkRu(AsyncGeneratorProvider):
48 48 async with session.post(f"{cls.url}/gpt2", json=data, proxy=proxy) as response:
49 49 await raise_for_status(response)
50 50 async for chunk in response.content.iter_any():
51 yield chunk.decode()
51 yield chunk.decode(errors="ignore")
52 52
53 53 def encrypt(public_key: str, value: str) -> str:
54 54 from Crypto.Cipher import PKCS1_v1_5