tool-call(dsv3): Improve deepseek-v3 chat template and tool_choice = required (#9525)

This commit is contained in:
Chang Su
2025-08-23 01:46:56 -07:00
committed by GitHub
parent 6b2b8bf0e1
commit c9dd70fbde
2 changed files with 17 additions and 17 deletions

View File

@@ -215,6 +215,6 @@ class DeepSeekV3Detector(BaseFormatDetector):
sequence_start_token=self.bot_token,
sequence_end_token=self.eot_token,
tool_call_separator="",
call_rule_fmt='"<tool▁call▁begin>function<tool▁sep>{name}\\n```json\\n" {arguments_rule} "\\n```<tool▁call▁end>"',
call_rule_fmt='"<tool▁call▁begin>function<tool▁sep>{name}\\n```json\\n"{arguments_rule}"\\n```<tool▁call▁end>"',
function_format="json",
)