summaryrefslogtreecommitdiffstats
path: root/g4f/client
diff options
context:
space:
mode:
Diffstat (limited to 'g4f/client')
-rw-r--r--g4f/client/async_client.py3
-rw-r--r--g4f/client/client.py3
2 files changed, 4 insertions, 2 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,
diff --git a/g4f/client/client.py b/g4f/client/client.py
index 8ce5d932..bc0bae6f 100644
--- a/g4f/client/client.py
+++ b/g4f/client/client.py
@@ -98,7 +98,8 @@ class Completions():
)
stop = [stop] if isinstance(stop, str) else stop
response = provider.create_completion(
- model, messages, stream,
+ model, messages,
+ stream=stream,
**filter_none(
proxy=self.client.get_proxy() if proxy is None else proxy,
max_tokens=max_tokens,