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