File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
components/backends/sglang/src/dynamo/sglang Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments