mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-09-12 00:29:27 -04:00
Update __init__.py
fixed the line where it checks if stream is requested. I made the change because before it ignored what the user typed because there was a invalid conversion from the boolean to string where the if stream clause would always be true. Simple workaround :)
This commit is contained in:
parent
297a7fa7dd
commit
ef3fdfa892
@ -78,7 +78,7 @@ class Api:
|
|||||||
item_data['messages'] = ast.literal_eval(item_data.get('messages'))
|
item_data['messages'] = ast.literal_eval(item_data.get('messages'))
|
||||||
|
|
||||||
model = item_data.get('model')
|
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')
|
messages = item_data.get('messages')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user