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