[Frontend] Accept --reasoning-parser none as the unset default (#61525)
Signed-off-by: Alec Flowers <aflowers@nvidia.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Bugen Zhao <i@bugenzhao.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
Bugen Zhao
parent
c9bfa574ce
commit
aa0c433a3e
@@ -300,6 +300,16 @@ def test_passes_with_reasoning_parser(serve_parser):
|
||||
validate_parsed_serve_args(args)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
("value", "expected"),
|
||||
[("none", ""), ("None", ""), ("NONE", ""), ("deepseek_r1", "deepseek_r1")],
|
||||
)
|
||||
def test_reasoning_parser_none_disables_parser(serve_parser, value, expected):
|
||||
"""`--reasoning-parser none` disables parsing, as in `vllm-rs serve`."""
|
||||
args = serve_parser.parse_args(args=["--reasoning-parser", value])
|
||||
assert args.reasoning_parser == expected
|
||||
|
||||
|
||||
def test_chat_template_validation_for_happy_paths(serve_parser):
|
||||
"""Ensure validation passes if the chat template exists."""
|
||||
args = serve_parser.parse_args(
|
||||
|
||||
Reference in New Issue
Block a user