Update app.py
Browse files
app.py
CHANGED
|
@@ -435,9 +435,10 @@ def handsome_chat_completions():
|
|
| 435 |
}
|
| 436 |
), 429
|
| 437 |
|
| 438 |
-
|
| 439 |
-
|
| 440 |
-
|
|
|
|
| 441 |
|
| 442 |
headers = {
|
| 443 |
"Authorization": f"Bearer {api_key}",
|
|
|
|
| 435 |
}
|
| 436 |
), 429
|
| 437 |
|
| 438 |
+
if model_name == "deepseek-reasoner":
|
| 439 |
+
for param in ["temperature", "top_p", "presence_penalty", "frequency_penalty", "logprobs", "top_logprobs"]:
|
| 440 |
+
if param in data:
|
| 441 |
+
del data[param]
|
| 442 |
|
| 443 |
headers = {
|
| 444 |
"Authorization": f"Bearer {api_key}",
|