mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-05 00:01:00 +00:00
Fix streaming in Aura
This commit is contained in:
parent
554609dc73
commit
74a21cdb4e
@ -52,4 +52,5 @@ class Aura(AsyncGeneratorProvider):
|
||||
"temperature": 0.5
|
||||
}
|
||||
async with session.post(f"{cls.url}/api/chat", json=data, proxy=proxy) as response:
|
||||
return response.content.iter_any()
|
||||
async for chunk in response.content.iter_any():
|
||||
yield chunk.decode()
|
Loading…
Reference in New Issue
Block a user