mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
跳过 DeepSeek-R1 模型的深度思考内容
This commit is contained in:
parent
1d590e7b9f
commit
956ed28cb9
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ class LLMProvider(LLMProviderBase):
|
|||
messages=dialogue,
|
||||
stream=True
|
||||
)
|
||||
is_active = True
|
||||
is_active = True
|
||||
for chunk in responses:
|
||||
# 检查是否存在有效的choice且content不为空
|
||||
delta = chunk.choices[0].delta if chunk.choices else None
|
||||
|
|
|
|||
Loading…
Reference in a new issue