Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ def random_response(message, history):
|
|
| 9 |
|
| 10 |
if history:
|
| 11 |
messages.extend(history)
|
| 12 |
-
messages.append(
|
| 13 |
|
| 14 |
response = client.chat_completion(
|
| 15 |
messages,
|
|
|
|
| 9 |
|
| 10 |
if history:
|
| 11 |
messages.extend(history)
|
| 12 |
+
messages.append({"role":"user", "content":message})
|
| 13 |
|
| 14 |
response = client.chat_completion(
|
| 15 |
messages,
|