Fix streaming in Aura

This commit is contained in:
Heiner Lohaus 2023-12-23 20:36:35 +01:00
parent 554609dc73
commit 74a21cdb4e

View File

@ -52,4 +52,5 @@ class Aura(AsyncGeneratorProvider):
"temperature": 0.5 "temperature": 0.5
} }
async with session.post(f"{cls.url}/api/chat", json=data, proxy=proxy) as response: 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()