Send a note instead of a HEIC, AVIF, BMP or TIFF image a tool returns to a Groq model
Follows #15366 (stacked on it; this PR's base is that branch until it merges). Part of #12052.
The file-format probe in #15366 recorded Groq answering HEIC, AVIF, BMP and TIFF images with a 400, in a user prompt and as a tool result. For TIFF the error reads "supported formats are jpeg, png, webp, gif". Groq's profile judged images by kind alone, so a tool returning one of those images failed the run instead of going to the model as a note.
Change
- Profile:
GroqProvider.model_profilesetssupported_image_media_typesto JPEG, PNG, GIF and WebP in its gateway layer. That layer overrides the family profiles of models Groq serves, such as Gemma and Qwen. A model that doesn't take images still hassupports_image_inputoff, so the set changes nothing for it. - Tests:
- the probe's
KNOWN_DISAGREEMENTSloses its Groq entry; test_adapter_file_input_flags[groq]and the resolution-matrix snapshots are updated.
- the probe's
- Docs: an "Image input" section in
docs/models/groq.md.
The probe ran against qwen/qwen3.8-27b. Groq no longer serves the multimodal matrix's meta-llama/llama-4-maverick-17b-128e-instruct (it answers model_not_found).
Checklist
- No breaking changes in accordance with the version policy.
- Any permitted compatibility impact has a label, warning, migration and release note, and an exact API-check waiver if the gate reports it.
- PR title is fit for the release changelog.
š¤ Generated with Claude Code
Summary by cubic
Sets Groq's declared supported image media types so a tool returning a HEIC, AVIF, BMP, or TIFF image no longer fails the run ā the image is sent to the Groq model as a note naming it instead.
GroqProvider.model_profilenow setssupported_image_media_typesto JPEG, PNG, GIF, and WebP in the gateway layer, overriding the family profiles of models Groq serves. Models that don't take images are unaffected.- Updates the file-format probe expectations, the unreadable-tool-files test, and resolution-matrix snapshots.
- Adds an "Image input" section to
docs/models/groq.mdand lists Groq where the docs describe which image formats become a note.