mirror of https://github.com/xtekky/gpt4free.git
Update GptTalkRu.py
This commit is contained in:
parent
95e61ad79b
commit
5dcbf147b6
|
@ -48,7 +48,7 @@ class GptTalkRu(AsyncGeneratorProvider):
|
||||||
async with session.post(f"{cls.url}/gpt2", json=data, proxy=proxy) as response:
|
async with session.post(f"{cls.url}/gpt2", json=data, proxy=proxy) as response:
|
||||||
await raise_for_status(response)
|
await raise_for_status(response)
|
||||||
async for chunk in response.content.iter_any():
|
async for chunk in response.content.iter_any():
|
||||||
yield chunk.decode()
|
yield chunk.decode(errors="ignore")
|
||||||
|
|
||||||
def encrypt(public_key: str, value: str) -> str:
|
def encrypt(public_key: str, value: str) -> str:
|
||||||
from Crypto.Cipher import PKCS1_v1_5
|
from Crypto.Cipher import PKCS1_v1_5
|
||||||
|
|
Loading…
Reference in New Issue