Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,8 +18,7 @@ def respond(message, history): #function for Gradio to call
|
|
| 18 |
messages.append({"role": "user", "content": message}) #add the current user’s message to the messages list
|
| 19 |
|
| 20 |
# chat completion API call forwarding the messages & other params to model
|
| 21 |
-
response = client.chat_completion(messages, max_tokens=100, temperature = 2)
|
| 22 |
-
|
| 23 |
return response.choices[0].message.content.strip()
|
| 24 |
|
| 25 |
# defining chatbot
|
|
|
|
| 18 |
messages.append({"role": "user", "content": message}) #add the current user’s message to the messages list
|
| 19 |
|
| 20 |
# chat completion API call forwarding the messages & other params to model
|
| 21 |
+
response = client.chat_completion(messages, max_tokens=100, temperature = 2, top_p=0.95) #deepseek R1 recomended temp range: 0.5-0.7
|
|
|
|
| 22 |
return response.choices[0].message.content.strip()
|
| 23 |
|
| 24 |
# defining chatbot
|