Spaces:
Runtime error
Runtime error
try
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ def respond(message, history):
|
|
| 9 |
if history:
|
| 10 |
messages.extend(history)
|
| 11 |
|
| 12 |
-
messages.append({"role" : "user", "content" :
|
| 13 |
response = client.chat_completion(messages, max_tokens = 100)
|
| 14 |
|
| 15 |
print(response ["choices"][0]["message"]["content"].strip())
|
|
|
|
| 9 |
if history:
|
| 10 |
messages.extend(history)
|
| 11 |
|
| 12 |
+
messages.append({"role" : "user", "content" : message})
|
| 13 |
response = client.chat_completion(messages, max_tokens = 100)
|
| 14 |
|
| 15 |
print(response ["choices"][0]["message"]["content"].strip())
|