fix
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ def respond(message,history):
|
|
| 8 |
|
| 9 |
if history:
|
| 10 |
messages.extend(history)
|
| 11 |
-
messages.
|
| 12 |
|
| 13 |
|
| 14 |
response = client.chat_completion(messages,max_tokens=100,temperature=0.2)
|
|
|
|
| 8 |
|
| 9 |
if history:
|
| 10 |
messages.extend(history)
|
| 11 |
+
messages.append({"role": "user", "content": message})
|
| 12 |
|
| 13 |
|
| 14 |
response = client.chat_completion(messages,max_tokens=100,temperature=0.2)
|