You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(tool_parser): resolve nullable/union schema types for coercion
param_types_for_function only read a scalar `type`, so an optional string
declared as {"type": ["string", "null"]} or via anyOf/oneOf produced no
entry and fell back to inference (coercing e.g. "4" to a number). Resolve such
schemas to their non-null type so optional strings stay strings. Shared helper,
so qwen_xml/glm4_moe/minimax_m2 all benefit. (No BFCL schema uses unions today,
so scores are unchanged; this is real-world robustness.)
Signed-off-by: key4ng <rukeyang@gmail.com>
0 commit comments