Merge pull request #1382 from xtekky/aura

Fix streaming in Aura
pull/1389/head
H Lohaus 6 months ago committed by GitHub
commit 4a8aafdfce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save