yangtb24 commited on
Commit
fc0b50f
·
verified ·
1 Parent(s): d8305ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -434,6 +434,10 @@ def handsome_chat_completions():
434
  )
435
  }
436
  ), 429
 
 
 
 
437
 
438
  headers = {
439
  "Authorization": f"Bearer {api_key}",
@@ -656,4 +660,4 @@ if __name__ == '__main__':
656
  debug=False,
657
  host='0.0.0.0',
658
  port=int(os.environ.get('PORT', 7860))
659
- )
 
434
  )
435
  }
436
  ), 429
437
+
438
+ # Remove temperature if model is deepseek-reasoner
439
+ if model_name == "deepseek-reasoner" and "temperature" in data:
440
+ del data["temperature"]
441
 
442
  headers = {
443
  "Authorization": f"Bearer {api_key}",
 
660
  debug=False,
661
  host='0.0.0.0',
662
  port=int(os.environ.get('PORT', 7860))
663
+ )