summaryrefslogtreecommitdiffstats
path: root/g4f/providers
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-05-15 21:07:49 +0200
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-05-15 21:07:49 +0200
commit24c5502d7601ba3f2c5ab459015c74002b3af5c6 (patch)
treef9a4170ef8c5b0358bc4cf7189f997e3098ee0f3 /g4f/providers
parentUpdate README.md (diff)
downloadgpt4free-24c5502d7601ba3f2c5ab459015c74002b3af5c6.tar
gpt4free-24c5502d7601ba3f2c5ab459015c74002b3af5c6.tar.gz
gpt4free-24c5502d7601ba3f2c5ab459015c74002b3af5c6.tar.bz2
gpt4free-24c5502d7601ba3f2c5ab459015c74002b3af5c6.tar.lz
gpt4free-24c5502d7601ba3f2c5ab459015c74002b3af5c6.tar.xz
gpt4free-24c5502d7601ba3f2c5ab459015c74002b3af5c6.tar.zst
gpt4free-24c5502d7601ba3f2c5ab459015c74002b3af5c6.zip
Diffstat (limited to '')
-rw-r--r--g4f/providers/retry_provider.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/providers/retry_provider.py b/g4f/providers/retry_provider.py
index e2520437..cde8c848 100644
--- a/g4f/providers/retry_provider.py
+++ b/g4f/providers/retry_provider.py
@@ -133,7 +133,7 @@ class NewBaseRetryProvider(BaseRetryProvider):
if not stream:
yield await provider.create_async(model, messages, **kwargs)
elif hasattr(provider, "create_async_generator"):
- async for token in provider.create_async_generator(model, messages, stream, **kwargs):
+ async for token in provider.create_async_generator(model, messages, stream=stream, **kwargs):
yield token
else:
for token in provider.create_completion(model, messages, stream, **kwargs):