diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2023-11-16 09:31:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-16 09:31:50 +0100 |
commit | 2e46f1c07453d65a7f774692d2dd43840a2fd95c (patch) | |
tree | 1c8f685f005ada5e91fc418a78eadfa9b30a69fa /g4f/api | |
parent | Update README.md (diff) | |
parent | Update __init__.py (diff) | |
download | gpt4free-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 'g4f/api')
-rw-r--r-- | g4f/api/__init__.py | 2 |
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: |