From 744b663598518eae34eb1606b1f908781f1ceddc Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Sun, 9 Feb 2025 18:03:41 +0800 Subject: [PATCH] Update DeepSeek_Reasoner.py --- 模型API - DeepSeek - DeepSeek_Reasoner/DeepSeek_Reasoner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/模型API - DeepSeek - DeepSeek_Reasoner/DeepSeek_Reasoner.py b/模型API - DeepSeek - DeepSeek_Reasoner/DeepSeek_Reasoner.py index cb992fe..e144cfe 100644 --- a/模型API - DeepSeek - DeepSeek_Reasoner/DeepSeek_Reasoner.py +++ b/模型API - DeepSeek - DeepSeek_Reasoner/DeepSeek_Reasoner.py @@ -60,7 +60,7 @@ def response_of_deepseek_chat(prompt): think_or_not = 1 answer_or_not = 1 for chunk in completion: - response = chunk.choices[0].delta.content or "" + response = chunk.choices[0].delta.content reasoning_content = chunk.choices[0].delta.reasoning_content if response == None: if think_or_not == 1: