[Tool Parser][1/3] Pass tools to ToolParser constructor (#38029)

Signed-off-by: sfeng33 <4florafeng@gmail.com>
This commit is contained in:
Flora Feng
2026-03-26 10:29:06 +08:00
committed by GitHub
parent 87f05d6880
commit e2db2b4234
38 changed files with 147 additions and 92 deletions
+1 -1
View File
@@ -925,7 +925,7 @@ class OpenAIServing:
# Automatic Tool Call Parsing
try:
tool_parser = tool_parser_cls(tokenizer)
tool_parser = tool_parser_cls(tokenizer, request.tools)
except RuntimeError as e:
logger.exception("Error in tool parser creation.")
raise e