Skip to content

Commit d7e85cf

Browse files
ruisearch42rasmith
authored andcommitted
[Misc] Fix typo for valid_tool_parses (vllm-project#11753)
Signed-off-by: Rui Qiao <[email protected]>
1 parent f70d007 commit d7e85cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vllm/entrypoints/openai/api_server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -767,11 +767,11 @@ async def run_server(args, **uvicorn_kwargs) -> None:
767767
if args.tool_parser_plugin and len(args.tool_parser_plugin) > 3:
768768
ToolParserManager.import_tool_parser(args.tool_parser_plugin)
769769

770-
valide_tool_parses = ToolParserManager.tool_parsers.keys()
770+
valid_tool_parses = ToolParserManager.tool_parsers.keys()
771771
if args.enable_auto_tool_choice \
772-
and args.tool_call_parser not in valide_tool_parses:
772+
and args.tool_call_parser not in valid_tool_parses:
773773
raise KeyError(f"invalid tool call parser: {args.tool_call_parser} "
774-
f"(chose from {{ {','.join(valide_tool_parses)} }})")
774+
f"(chose from {{ {','.join(valid_tool_parses)} }})")
775775

776776
# workaround to make sure that we bind the port before the engine is set up.
777777
# This avoids race conditions with ray.

0 commit comments

Comments
 (0)