summaryrefslogtreecommitdiffstats
path: root/g4f/api
diff options
context:
space:
mode:
authorJunXiang <jimmy871117@gmail.com>2023-11-16 10:15:43 +0100
committerGitHub <noreply@github.com>2023-11-16 10:15:43 +0100
commit04303131c868c5ed663de3680eff776c77decc90 (patch)
treeef3709e3c654c0d2a9b2c207eccace565e69663e /g4f/api
parentfix: GPTalk can only use 5 times (#1255) (diff)
parentMerge pull request #1250 from kacperkwapisz/patch-1 (diff)
downloadgpt4free-04303131c868c5ed663de3680eff776c77decc90.tar
gpt4free-04303131c868c5ed663de3680eff776c77decc90.tar.gz
gpt4free-04303131c868c5ed663de3680eff776c77decc90.tar.bz2
gpt4free-04303131c868c5ed663de3680eff776c77decc90.tar.lz
gpt4free-04303131c868c5ed663de3680eff776c77decc90.tar.xz
gpt4free-04303131c868c5ed663de3680eff776c77decc90.tar.zst
gpt4free-04303131c868c5ed663de3680eff776c77decc90.zip
Diffstat (limited to 'g4f/api')
-rw-r--r--g4f/api/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/api/__init__.py b/g4f/api/__init__.py
index 8eceb743..166395db 100644
--- a/g4f/api/__init__.py
+++ b/g4f/api/__init__.py
@@ -78,7 +78,7 @@ class Api:
item_data['messages'] = ast.literal_eval(item_data.get('messages'))
model = item_data.get('model')
- stream = item_data.get('stream')
+ stream = True if item_data.get("stream") == "True" else False
messages = item_data.get('messages')
try: