Spaces:
Running
Running
jonathanjordan21
commited on
Commit
•
6e897aa
1
Parent(s):
375567d
Update apis/chat_api.py
Browse files- apis/chat_api.py +1 -1
apis/chat_api.py
CHANGED
@@ -221,7 +221,7 @@ class ChatAPIApp:
|
|
221 |
"model": data_response.get('model'),
|
222 |
"created_at": data_response.get('created_at'),
|
223 |
"response": data_response.get('choices')[-1].get('message').get('content'),
|
224 |
-
"done": True if data_response.get('choices')[-1].get('finish_reason') !=
|
225 |
}
|
226 |
return data_response
|
227 |
except HfApiException as e:
|
|
|
221 |
"model": data_response.get('model'),
|
222 |
"created_at": data_response.get('created_at'),
|
223 |
"response": data_response.get('choices')[-1].get('message').get('content'),
|
224 |
+
"done": True if data_response.get('choices')[-1].get('finish_reason') != None else False,
|
225 |
}
|
226 |
return data_response
|
227 |
except HfApiException as e:
|