summaryrefslogtreecommitdiffstats
path: root/g4f/api/__init__.py
diff options
context:
space:
mode:
authorKacper Kwapisz <kwapikapi@gmail.com>2023-11-14 12:39:38 +0100
committerGitHub <noreply@github.com>2023-11-14 12:39:38 +0100
commitef3fdfa892c982b8262661d909a2113ed6cbb6b8 (patch)
treeb81474867453cab633ed992f32c10c05e7f584ec /g4f/api/__init__.py
parent~ (diff)
downloadgpt4free-ef3fdfa892c982b8262661d909a2113ed6cbb6b8.tar
gpt4free-ef3fdfa892c982b8262661d909a2113ed6cbb6b8.tar.gz
gpt4free-ef3fdfa892c982b8262661d909a2113ed6cbb6b8.tar.bz2
gpt4free-ef3fdfa892c982b8262661d909a2113ed6cbb6b8.tar.lz
gpt4free-ef3fdfa892c982b8262661d909a2113ed6cbb6b8.tar.xz
gpt4free-ef3fdfa892c982b8262661d909a2113ed6cbb6b8.tar.zst
gpt4free-ef3fdfa892c982b8262661d909a2113ed6cbb6b8.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: