summaryrefslogtreecommitdiffstats
path: root/g4f/providers
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-05-16 20:06:57 +0200
committerGitHub <noreply@github.com>2024-05-16 20:06:57 +0200
commit0332c0c0dd01dd71aabca62f007ad9e8809ee48f (patch)
treef9a4170ef8c5b0358bc4cf7189f997e3098ee0f3 /g4f/providers
parentUpdate README.md (diff)
parentAdd needs auth to provierds, Add PerplexityApi provider (diff)
downloadgpt4free-0332c0c0dd01dd71aabca62f007ad9e8809ee48f.tar
gpt4free-0332c0c0dd01dd71aabca62f007ad9e8809ee48f.tar.gz
gpt4free-0332c0c0dd01dd71aabca62f007ad9e8809ee48f.tar.bz2
gpt4free-0332c0c0dd01dd71aabca62f007ad9e8809ee48f.tar.lz
gpt4free-0332c0c0dd01dd71aabca62f007ad9e8809ee48f.tar.xz
gpt4free-0332c0c0dd01dd71aabca62f007ad9e8809ee48f.tar.zst
gpt4free-0332c0c0dd01dd71aabca62f007ad9e8809ee48f.zip
Diffstat (limited to 'g4f/providers')
-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):