Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,9 @@ def respond(message, history):
|
|
| 14 |
|
| 15 |
response = client.chat_completion(
|
| 16 |
messages,
|
| 17 |
-
max_tokens=200 # change the length of message
|
|
|
|
|
|
|
| 18 |
)
|
| 19 |
|
| 20 |
return response['choices'][0]['message']['content'].strip()
|
|
|
|
| 14 |
|
| 15 |
response = client.chat_completion(
|
| 16 |
messages,
|
| 17 |
+
max_tokens=200 # change the length of message,
|
| 18 |
+
temperature = 0
|
| 19 |
+
top_p = 0.7
|
| 20 |
)
|
| 21 |
|
| 22 |
return response['choices'][0]['message']['content'].strip()
|