Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ def respond(message, history):
|
|
| 21 |
messages.extend(history)
|
| 22 |
|
| 23 |
response = client.chat_completion(
|
| 24 |
-
messages, max_tokens = 100,
|
| 25 |
#temp and top_p control randomness
|
| 26 |
)
|
| 27 |
return response['choices'][0]['message']['content'].strip()
|
|
|
|
| 21 |
messages.extend(history)
|
| 22 |
|
| 23 |
response = client.chat_completion(
|
| 24 |
+
messages, max_tokens = 100, temperature=1.3, top_p=.2
|
| 25 |
#temp and top_p control randomness
|
| 26 |
)
|
| 27 |
return response['choices'][0]['message']['content'].strip()
|