Unverified Commit 2da02dd0 authored by ZiTian Zhao's avatar ZiTian Zhao Committed by GitHub
Browse files

[Fix] DeepSeek V3.1 tool parser error message (#23492)


Signed-off-by: default avatarzitian.zhao <zitian.zhao@tencentmusic.com>
parent d765cf01
...@@ -64,8 +64,8 @@ class DeepSeekV31ToolParser(ToolParser): ...@@ -64,8 +64,8 @@ class DeepSeekV31ToolParser(ToolParser):
if (self.tool_calls_start_token_id is None if (self.tool_calls_start_token_id is None
or self.tool_calls_end_token_id is None): or self.tool_calls_end_token_id is None):
raise RuntimeError( raise RuntimeError(
"DeepSeek-V3 Tool parser could not locate tool call start/end " "DeepSeek-V3.1 Tool parser could not locate tool call "
"tokens in the tokenizer!") "start/end tokens in the tokenizer!")
def extract_tool_calls( def extract_tool_calls(
self, self,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment