summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/Aura.py
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2023-12-23 20:37:51 +0100
committerGitHub <noreply@github.com>2023-12-23 20:37:51 +0100
commit4a8aafdfce562341cbb37b9ef65a71e7a80e6765 (patch)
treeb10c9c4d2d046e62f96845e45ca601925f0b04fd /g4f/Provider/Aura.py
parentMerge pull request #1381 from xtekky/aura (diff)
parentFix streaming in Aura (diff)
downloadgpt4free-4a8aafdfce562341cbb37b9ef65a71e7a80e6765.tar
gpt4free-4a8aafdfce562341cbb37b9ef65a71e7a80e6765.tar.gz
gpt4free-4a8aafdfce562341cbb37b9ef65a71e7a80e6765.tar.bz2
gpt4free-4a8aafdfce562341cbb37b9ef65a71e7a80e6765.tar.lz
gpt4free-4a8aafdfce562341cbb37b9ef65a71e7a80e6765.tar.xz
gpt4free-4a8aafdfce562341cbb37b9ef65a71e7a80e6765.tar.zst
gpt4free-4a8aafdfce562341cbb37b9ef65a71e7a80e6765.zip
Diffstat (limited to 'g4f/Provider/Aura.py')
-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