diff options
author | JunXiang <jimmy871117@gmail.com> | 2023-11-16 10:15:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-16 10:15:43 +0100 |
commit | 04303131c868c5ed663de3680eff776c77decc90 (patch) | |
tree | ef3709e3c654c0d2a9b2c207eccace565e69663e /g4f/api/__init__.py | |
parent | fix: GPTalk can only use 5 times (#1255) (diff) | |
parent | Merge pull request #1250 from kacperkwapisz/patch-1 (diff) | |
download | gpt4free-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/__init__.py')
-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: |