Unverified Commit f8fcca10 authored by Rui Qiao's avatar Rui Qiao Committed by GitHub
Browse files

[Misc] Fix typo for valid_tool_parses (#11753)


Signed-off-by: default avatarRui Qiao <ruisearch42@gmail.com>
parent 06bfb519
...@@ -767,11 +767,11 @@ async def run_server(args, **uvicorn_kwargs) -> None: ...@@ -767,11 +767,11 @@ async def run_server(args, **uvicorn_kwargs) -> None:
if args.tool_parser_plugin and len(args.tool_parser_plugin) > 3: if args.tool_parser_plugin and len(args.tool_parser_plugin) > 3:
ToolParserManager.import_tool_parser(args.tool_parser_plugin) ToolParserManager.import_tool_parser(args.tool_parser_plugin)
valide_tool_parses = ToolParserManager.tool_parsers.keys() valid_tool_parses = ToolParserManager.tool_parsers.keys()
if args.enable_auto_tool_choice \ if args.enable_auto_tool_choice \
and args.tool_call_parser not in valide_tool_parses: and args.tool_call_parser not in valid_tool_parses:
raise KeyError(f"invalid tool call parser: {args.tool_call_parser} " raise KeyError(f"invalid tool call parser: {args.tool_call_parser} "
f"(chose from {{ {','.join(valide_tool_parses)} }})") f"(chose from {{ {','.join(valid_tool_parses)} }})")
# workaround to make sure that we bind the port before the engine is set up. # workaround to make sure that we bind the port before the engine is set up.
# This avoids race conditions with ray. # This avoids race conditions with ray.
......
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