Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,6 +18,10 @@ def respond(message, history):
|
|
| 18 |
if history:
|
| 19 |
messages.extend(history)
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
response = client.chat_completion(
|
| 22 |
messages=messages,
|
| 23 |
max_tokens=100,
|
|
|
|
| 18 |
if history:
|
| 19 |
messages.extend(history)
|
| 20 |
|
| 21 |
+
messages.append({
|
| 22 |
+
"role": "user",
|
| 23 |
+
"content": message
|
| 24 |
+
})
|
| 25 |
response = client.chat_completion(
|
| 26 |
messages=messages,
|
| 27 |
max_tokens=100,
|