summaryrefslogtreecommitdiffstats
path: root/g4f/client/async_client.py
diff options
context:
space:
mode:
authormm3b <111815541+mm3b@users.noreply.github.com>2024-04-14 04:27:37 +0200
committerGitHub <noreply@github.com>2024-04-14 04:27:37 +0200
commit02b51a94c9d061483b6b39daacc5dc0a66cf6312 (patch)
tree2b7172ef9033c96fc1dcbae280fe9bebefed1e4e /g4f/client/async_client.py
parentMerge branch 'main' of https://github.com/xtekky/gpt4free (diff)
downloadgpt4free-02b51a94c9d061483b6b39daacc5dc0a66cf6312.tar
gpt4free-02b51a94c9d061483b6b39daacc5dc0a66cf6312.tar.gz
gpt4free-02b51a94c9d061483b6b39daacc5dc0a66cf6312.tar.bz2
gpt4free-02b51a94c9d061483b6b39daacc5dc0a66cf6312.tar.lz
gpt4free-02b51a94c9d061483b6b39daacc5dc0a66cf6312.tar.xz
gpt4free-02b51a94c9d061483b6b39daacc5dc0a66cf6312.tar.zst
gpt4free-02b51a94c9d061483b6b39daacc5dc0a66cf6312.zip
Diffstat (limited to '')
-rw-r--r--g4f/client/async_client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/g4f/client/async_client.py b/g4f/client/async_client.py
index 51a9cf83..8e1ee33c 100644
--- a/g4f/client/async_client.py
+++ b/g4f/client/async_client.py
@@ -144,7 +144,7 @@ class Completions():
proxy=self.client.get_proxy() if proxy is None else proxy,
max_tokens=max_tokens,
stop=stop,
- api_key=self.client.api_key if api_key is None else api_key
+ api_key=self.client.api_key if api_key is None else api_key,
**kwargs
)
response = iter_response(response, stream, response_format, max_tokens, stop)
@@ -207,4 +207,4 @@ class Images():
result = iter_image_response(response)
if result is None:
raise NoImageResponseError()
- return result \ No newline at end of file
+ return result