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:
Kacper Kwapisz 2023-11-14 12:39:38 +01:00 committed by GitHub
parent 297a7fa7dd
commit ef3fdfa892
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: