From 24c5502d7601ba3f2c5ab459015c74002b3af5c6 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Wed, 15 May 2024 21:07:49 +0200 Subject: Add needs auth to provierds, Add PerplexityApi provider Add proxy support to nodriver --- g4f/providers/retry_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g4f/providers/retry_provider.py') 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): -- cgit v1.2.3