Spaces:
Sleeping
Sleeping
changes message e to messages
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ def respond(message, history):
|
|
| 8 |
messages = [{"role": "system", "content": "You are a friendly chatbot."}]
|
| 9 |
|
| 10 |
if history:
|
| 11 |
-
|
| 12 |
|
| 13 |
messages.append ({"role": "user", "content":message})
|
| 14 |
|
|
|
|
| 8 |
messages = [{"role": "system", "content": "You are a friendly chatbot."}]
|
| 9 |
|
| 10 |
if history:
|
| 11 |
+
messages.extend(history)
|
| 12 |
|
| 13 |
messages.append ({"role": "user", "content":message})
|
| 14 |
|