Update app.py
Browse files
app.py
CHANGED
@@ -517,10 +517,7 @@ def handsome_chat_completions():
|
|
517 |
response_content += formatted_reasoning + "\n"
|
518 |
if "content" in choice["message"]:
|
519 |
response_content += choice["message"]["content"]
|
520 |
-
elif "choices" in response_json and len(response_json["choices"]) > 0:
|
521 |
-
response_content = response_json["choices"][0]["message"]["content"]
|
522 |
-
|
523 |
-
if model_name == "deepseek-reasoner-openwebui" and "choices" in response_json and len(response_json["choices"]) > 0:
|
524 |
choice = response_json["choices"][0]
|
525 |
if "message" in choice:
|
526 |
if "reasoning_content" in choice["message"]:
|
|
|
517 |
response_content += formatted_reasoning + "\n"
|
518 |
if "content" in choice["message"]:
|
519 |
response_content += choice["message"]["content"]
|
520 |
+
elif model_name == "deepseek-reasoner-openwebui" and "choices" in response_json and len(response_json["choices"]) > 0:
|
|
|
|
|
|
|
521 |
choice = response_json["choices"][0]
|
522 |
if "message" in choice:
|
523 |
if "reasoning_content" in choice["message"]:
|