summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2023-11-16 09:31:50 +0100
committerGitHub <noreply@github.com>2023-11-16 09:31:50 +0100
commit2e46f1c07453d65a7f774692d2dd43840a2fd95c (patch)
tree1c8f685f005ada5e91fc418a78eadfa9b30a69fa
parentUpdate README.md (diff)
parentUpdate __init__.py (diff)
downloadgpt4free-2e46f1c07453d65a7f774692d2dd43840a2fd95c.tar
gpt4free-2e46f1c07453d65a7f774692d2dd43840a2fd95c.tar.gz
gpt4free-2e46f1c07453d65a7f774692d2dd43840a2fd95c.tar.bz2
gpt4free-2e46f1c07453d65a7f774692d2dd43840a2fd95c.tar.lz
gpt4free-2e46f1c07453d65a7f774692d2dd43840a2fd95c.tar.xz
gpt4free-2e46f1c07453d65a7f774692d2dd43840a2fd95c.tar.zst
gpt4free-2e46f1c07453d65a7f774692d2dd43840a2fd95c.zip
Diffstat (limited to '')
-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: