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
feat(#3996): reject incompatible image-output Google requests
Gemini image-output requests fail with opaque HTTP 400 responses when they
also carry custom tools, built-in tools, or structured output. Resolve the
model capability first, then reject those unsupported shapes locally before
network dispatch on the gateway, direct Gemini API, and Vertex AI surfaces
with a bounded error naming only fixed safe categories.
Keep ordinary text requests and compatible image-output requests unchanged.
Request-shape diagnostics report the resolved capability and separately note
whether configuration explicitly overrode catalogue metadata. Tests cover the
gate, no-dispatch behavior, safe errors, and the runtime/TUI error seam.
"this model is configured for image output (output_capabilities.image) and does not support %s in the same request; use a separate model or request for that combination",
43
+
strings.Join(names, ", "),
44
+
)
45
+
}
46
+
47
+
// checkImageOutputRequestCompatibility rejects, before any provider dispatch,
48
+
// an incompatible request when image output is enabled by configuration or the
0 commit comments