summaryrefslogtreecommitdiffstats
path: root/g4f/client.py
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-02-26 23:41:06 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-02-26 23:41:06 +0100
commit862e5ef16de7e1d4c4dcbd7b270d8fddf9a0e31c (patch)
tree307a5e72dbdaf0a6167fc56f1148a2f393384534 /g4f/client.py
parentFix filter messages in gui (diff)
downloadgpt4free-862e5ef16de7e1d4c4dcbd7b270d8fddf9a0e31c.tar
gpt4free-862e5ef16de7e1d4c4dcbd7b270d8fddf9a0e31c.tar.gz
gpt4free-862e5ef16de7e1d4c4dcbd7b270d8fddf9a0e31c.tar.bz2
gpt4free-862e5ef16de7e1d4c4dcbd7b270d8fddf9a0e31c.tar.lz
gpt4free-862e5ef16de7e1d4c4dcbd7b270d8fddf9a0e31c.tar.xz
gpt4free-862e5ef16de7e1d4c4dcbd7b270d8fddf9a0e31c.tar.zst
gpt4free-862e5ef16de7e1d4c4dcbd7b270d8fddf9a0e31c.zip
Diffstat (limited to '')
-rw-r--r--g4f/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/client.py b/g4f/client.py
index 3e11fac1..595beaf9 100644
--- a/g4f/client.py
+++ b/g4f/client.py
@@ -126,7 +126,7 @@ class Completions():
stop: Union[list[str], str] = None,
api_key: str = None,
**kwargs
- ) -> Union[ChatCompletion, Generator[ChatCompletionChunk]]:
+ ) -> Union[ChatCompletion, Generator[ChatCompletionChunk, None, None]]:
model, provider = get_model_and_provider(
model,
self.provider if provider is None else provider,