mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-19 03:25:32 +00:00
Merge pull request #1250 from kacperkwapisz/patch-1
stream check workaround & fix
This commit is contained in:
commit
2e46f1c074
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user