diff options
author | abc <98614666+xtekky@users.noreply.github.com> | 2024-04-12 18:06:54 +0200 |
---|---|---|
committer | abc <98614666+xtekky@users.noreply.github.com> | 2024-04-12 18:06:54 +0200 |
commit | a107d3f2ff0cd9ed61fb6a62aa0252d8f976e62e (patch) | |
tree | 3806af7a8046a49b99c2aaa9a65732e114dd41ee /g4f/client/client.py | |
parent | Add unittests for async client (#1830) (diff) | |
download | gpt4free-a107d3f2ff0cd9ed61fb6a62aa0252d8f976e62e.tar gpt4free-a107d3f2ff0cd9ed61fb6a62aa0252d8f976e62e.tar.gz gpt4free-a107d3f2ff0cd9ed61fb6a62aa0252d8f976e62e.tar.bz2 gpt4free-a107d3f2ff0cd9ed61fb6a62aa0252d8f976e62e.tar.lz gpt4free-a107d3f2ff0cd9ed61fb6a62aa0252d8f976e62e.tar.xz gpt4free-a107d3f2ff0cd9ed61fb6a62aa0252d8f976e62e.tar.zst gpt4free-a107d3f2ff0cd9ed61fb6a62aa0252d8f976e62e.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/client/client.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/g4f/client/client.py b/g4f/client/client.py index bc0bae6f..1b090981 100644 --- a/g4f/client/client.py +++ b/g4f/client/client.py @@ -96,6 +96,7 @@ class Completions(): ignore_working, ignore_stream, ) + stop = [stop] if isinstance(stop, str) else stop response = provider.create_completion( model, messages, |