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