[model] add deepseek-R1 & show think process (#6767)

Former-commit-id: 4dccb724af51208a001c96fefbdbf226be09e50c
This commit is contained in:
qvlehao
2025-01-29 12:16:26 +08:00
committed by GitHub
parent a8fae3869d
commit 4f298894da
4 changed files with 35 additions and 0 deletions

View File

@@ -157,6 +157,7 @@ class WebChatModel(ChatModel):
top_p=top_p,
temperature=temperature,
):
new_text = '' if any(t in new_text for t in ('<think>', '</think>')) else new_text
response += new_text
if tools:
result = self.engine.template.extract_tool(response)