Update DeepSeek_Reasoner.py

This commit is contained in:
guanjihuan 2025-02-09 18:03:41 +08:00
parent 0b3fdecde1
commit 744b663598

View File

@ -60,7 +60,7 @@ def response_of_deepseek_chat(prompt):
think_or_not = 1 think_or_not = 1
answer_or_not = 1 answer_or_not = 1
for chunk in completion: 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 reasoning_content = chunk.choices[0].delta.reasoning_content
if response == None: if response == None:
if think_or_not == 1: if think_or_not == 1: