summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2023-12-23 20:36:35 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2023-12-23 20:36:35 +0100
commit74a21cdb4ed18981409b2e49a48abc40d80a7653 (patch)
treeb10c9c4d2d046e62f96845e45ca601925f0b04fd
parentFix streaming in Aura (diff)
downloadgpt4free-74a21cdb4ed18981409b2e49a48abc40d80a7653.tar
gpt4free-74a21cdb4ed18981409b2e49a48abc40d80a7653.tar.gz
gpt4free-74a21cdb4ed18981409b2e49a48abc40d80a7653.tar.bz2
gpt4free-74a21cdb4ed18981409b2e49a48abc40d80a7653.tar.lz
gpt4free-74a21cdb4ed18981409b2e49a48abc40d80a7653.tar.xz
gpt4free-74a21cdb4ed18981409b2e49a48abc40d80a7653.tar.zst
gpt4free-74a21cdb4ed18981409b2e49a48abc40d80a7653.zip
-rw-r--r--g4f/Provider/Aura.py3
1 files changed, 2 insertions, 1 deletions
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