Unverified Commit da3e0bd6 authored by rongfu.leng's avatar rongfu.leng Committed by GitHub
Browse files

[Bugfix] we should use metavar is not choices (#21902)


Signed-off-by: default avatarrongfu.leng <rongfu.leng@daocloud.io>
parent fcfd1eb9
...@@ -194,7 +194,9 @@ schema. Example: `[{"type": "text", "text": "Hello world!"}]`""" ...@@ -194,7 +194,9 @@ schema. Example: `[{"type": "text", "text": "Hello world!"}]`"""
# Special case: Tool call parser shows built-in options. # Special case: Tool call parser shows built-in options.
valid_tool_parsers = list(ToolParserManager.tool_parsers.keys()) valid_tool_parsers = list(ToolParserManager.tool_parsers.keys())
frontend_kwargs["tool_call_parser"]["choices"] = valid_tool_parsers parsers_str = ",".join(valid_tool_parsers)
frontend_kwargs["tool_call_parser"]["metavar"] = (
f"{{{parsers_str}}} or name registered in --tool-parser-plugin")
frontend_group = parser.add_argument_group( frontend_group = parser.add_argument_group(
title="Frontend", title="Frontend",
......
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