Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,8 +29,8 @@ def add_affirmation_if_missing(text):
|
|
| 29 |
|
| 30 |
if history:
|
| 31 |
for user_msg, bot_msg in history:
|
| 32 |
-
|
| 33 |
-
|
| 34 |
|
| 35 |
response = client.chat_completion(
|
| 36 |
messages,
|
|
|
|
| 29 |
|
| 30 |
if history:
|
| 31 |
for user_msg, bot_msg in history:
|
| 32 |
+
messages.append({"role": "user", "content": user_msg})
|
| 33 |
+
messages.append({"role": "assistant", "content": bot_msg})
|
| 34 |
|
| 35 |
response = client.chat_completion(
|
| 36 |
messages,
|