Update app.py
Browse files
app.py
CHANGED
|
@@ -61,7 +61,7 @@ def bot(history):
|
|
| 61 |
model=global_model,
|
| 62 |
messages=convert_history_to_openai_format(history)
|
| 63 |
)
|
| 64 |
-
|
| 65 |
chatbot_message = response.choices[0].message['content'].strip()
|
| 66 |
history[-1] = (history[-1][0], chatbot_message) # Update the last entry with the assistant's response
|
| 67 |
return history
|
|
|
|
| 61 |
model=global_model,
|
| 62 |
messages=convert_history_to_openai_format(history)
|
| 63 |
)
|
| 64 |
+
print(response)
|
| 65 |
chatbot_message = response.choices[0].message['content'].strip()
|
| 66 |
history[-1] = (history[-1][0], chatbot_message) # Update the last entry with the assistant's response
|
| 67 |
return history
|