[Refactor] Lazy-loaded reasoning_parser (#28092)

Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
This commit is contained in:
Chauncey
2025-11-05 15:37:02 +08:00
committed by GitHub
parent b7cbc25416
commit e261d37c9a
21 changed files with 206 additions and 99 deletions
+1 -1
View File
@@ -708,7 +708,7 @@ class EngineArgs:
structured_outputs_group.add_argument(
"--reasoning-parser",
# This choice is a special case because it's not static
choices=list(ReasoningParserManager.reasoning_parsers),
choices=list(ReasoningParserManager.list_registered()),
**structured_outputs_kwargs["reasoning_parser"],
)
# Deprecated guided decoding arguments