summaryrefslogtreecommitdiffstats
path: root/g4f/client/async_client.py
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-04-07 19:59:28 +0200
committerGitHub <noreply@github.com>2024-04-07 19:59:28 +0200
commite724079d0fea382e89fedcf1c7cdb55b24cb56e3 (patch)
treeb9190a5df25ba2ed303ce92c6a8ff885db6b882b /g4f/client/async_client.py
parentUpdate You.py (diff)
parentAdd nodriver to OpenaiChat (diff)
downloadgpt4free-e724079d0fea382e89fedcf1c7cdb55b24cb56e3.tar
gpt4free-e724079d0fea382e89fedcf1c7cdb55b24cb56e3.tar.gz
gpt4free-e724079d0fea382e89fedcf1c7cdb55b24cb56e3.tar.bz2
gpt4free-e724079d0fea382e89fedcf1c7cdb55b24cb56e3.tar.lz
gpt4free-e724079d0fea382e89fedcf1c7cdb55b24cb56e3.tar.xz
gpt4free-e724079d0fea382e89fedcf1c7cdb55b24cb56e3.tar.zst
gpt4free-e724079d0fea382e89fedcf1c7cdb55b24cb56e3.zip
Diffstat (limited to 'g4f/client/async_client.py')
-rw-r--r--g4f/client/async_client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/g4f/client/async_client.py b/g4f/client/async_client.py
index 25de1c76..bab2fde9 100644
--- a/g4f/client/async_client.py
+++ b/g4f/client/async_client.py
@@ -87,7 +87,8 @@ def create_response(
else:
create = provider.create_completion
response = create(
- model, messages, stream,
+ model, messages,
+ stream=stream,
**filter_none(
proxy=proxy,
max_tokens=max_tokens,