[Frontend][Feature] Add jamba tool parser (#9154)
This commit is contained in:
@@ -53,7 +53,8 @@ class Hermes2ProToolParser(ToolParser):
|
||||
self.tool_call_start_token_id = self.vocab.get(
|
||||
self.tool_call_start_token)
|
||||
self.tool_call_end_token_id = self.vocab.get(self.tool_call_end_token)
|
||||
if not self.tool_call_start_token_id or not self.tool_call_end_token_id:
|
||||
if (self.tool_call_start_token_id is None
|
||||
or self.tool_call_end_token_id is None):
|
||||
raise RuntimeError(
|
||||
"Hermes 2 Pro Tool parser could not locate tool call start/end "
|
||||
"tokens in the tokenizer!")
|
||||
|
||||
Reference in New Issue
Block a user