[Frontend] Expand tools even if tool_choice="none" (#17177)
Signed-off-by: okada shintarou <okada@preferred.jp>
This commit is contained in:
@@ -223,6 +223,17 @@ def make_arg_parser(parser: FlexibleArgumentParser) -> FlexibleArgumentParser:
|
||||
default=False,
|
||||
help="Enable auto tool choice for supported models. Use "
|
||||
"``--tool-call-parser`` to specify which parser to use.")
|
||||
parser.add_argument(
|
||||
"--expand-tools-even-if-tool-choice-none",
|
||||
action="store_true",
|
||||
default=False,
|
||||
deprecated=True,
|
||||
help="Include tool definitions in prompts "
|
||||
"even when tool_choice='none'. "
|
||||
"This is a transitional option that will be removed in v0.10.0. "
|
||||
"In v0.10.0, tool definitions will always be included regardless of "
|
||||
"tool_choice setting. Use this flag now to test the new behavior "
|
||||
"before the breaking change.")
|
||||
|
||||
valid_tool_parsers = ToolParserManager.tool_parsers.keys()
|
||||
parser.add_argument(
|
||||
|
||||
Reference in New Issue
Block a user