Skip to content

Commit d190dc9

Browse files
cmunley1wendyliu235
authored andcommitted
qwen3coder tool parser fix anyOf double encoded parameters (vllm-project#36032)
Signed-off-by: Christian Munley <[email protected]>
1 parent bb6f339 commit d190dc9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

vllm/tool_parsers/qwen3coder_tool_parser.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ def _convert_param_value(
157157
and "type" in param_config[param_name]
158158
):
159159
param_type = str(param_config[param_name]["type"]).strip().lower()
160+
elif (
161+
isinstance(param_config[param_name], dict)
162+
and "anyOf" in param_config[param_name]
163+
):
164+
# anyOf has no top-level "type"; treat as object to trigger json.loads.
165+
param_type = "object"
160166
else:
161167
param_type = "string"
162168
if param_type in ["string", "str", "text", "varchar", "char", "enum"]:

0 commit comments

Comments
 (0)