From 74a21cdb4ed18981409b2e49a48abc40d80a7653 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Sat, 23 Dec 2023 20:36:35 +0100 Subject: Fix streaming in Aura --- g4f/Provider/Aura.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/g4f/Provider/Aura.py b/g4f/Provider/Aura.py index bdc8bafd..06887425 100644 --- a/g4f/Provider/Aura.py +++ b/g4f/Provider/Aura.py @@ -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() \ No newline at end of file + async for chunk in response.content.iter_any(): + yield chunk.decode() \ No newline at end of file -- cgit v1.2.3