Skip to content

Commit aff94b8

Browse files
committed
chore: disabled default sglang tool parser args
Signed-off-by: ayushag <[email protected]>
1 parent 1477f6e commit aff94b8

File tree

1 file changed

+10
-0
lines changed
  • components/backends/sglang/src/dynamo/sglang

1 file changed

+10
-0
lines changed

components/backends/sglang/src/dynamo/sglang/args.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,16 @@ def parse_args(args: list[str]) -> Config:
106106

107107
parsed_args = parser.parse_args(args)
108108

109+
# Disable sglang based parser arguments
110+
if parsed_args.tool_call_parser is not None:
111+
raise ValueError(
112+
"tool_call_parser is not supported for SGLang backend. Please use --dyn-tool-call-parser instead to enable tool calling."
113+
)
114+
if parsed_args.reasoning_parser is not None:
115+
raise ValueError(
116+
"reasoning_parser is not supported for SGLang backend. Please use --dyn-reasoning-parser instead to enable reasoning."
117+
)
118+
109119
# Auto-set bootstrap port if not provided
110120
if not any(arg.startswith("--disaggregation-bootstrap-port") for arg in args):
111121
args_dict = vars(parsed_args)

0 commit comments

Comments
 (0)