Merge pull request #1382 from xtekky/aura

Fix streaming in Aura
This commit is contained in:
H Lohaus 2023-12-23 20:37:51 +01:00 committed by GitHub
commit 4a8aafdfce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()