feat(#3996): resolve image output capability from models.dev - #4019
Open
aheritier wants to merge 2 commits into
Open
feat(#3996): resolve image output capability from models.dev#4019aheritier wants to merge 2 commits into
aheritier wants to merge 2 commits into
Conversation
aheritier
force-pushed
the
gemini-output-capability
branch
2 times, most recently
from
August 24, 2026 15:12
ebd9306 to
33c6981
Compare
aheritier
force-pushed
the
gemini-output-capability
branch
from
August 25, 2026 20:24
33c6981 to
5bb315a
Compare
aheritier
force-pushed
the
gemini-output-capability
branch
2 times, most recently
from
September 1, 2026 16:19
35efc65 to
5bb315a
Compare
aheritier
force-pushed
the
gemini-output-capability
branch
from
September 1, 2026 16:29
5bb315a to
d1bcf0a
Compare
This was referenced Sep 2, 2026
aheritier
force-pushed
the
gemini-output-capability
branch
2 times, most recently
from
September 7, 2026 11:19
475db3f to
a8c6997
Compare
aheritier
force-pushed
the
gemini-output-capability
branch
2 times, most recently
from
September 7, 2026 16:13
54e8365 to
da30da6
Compare
aheritier
force-pushed
the
gemini-output-capability
branch
from
September 7, 2026 16:47
da30da6 to
a1f86ba
Compare
aheritier
force-pushed
the
gemini-output-capability
branch
from
September 8, 2026 06:17
a1f86ba to
0862c0a
Compare
aheritier
force-pushed
the
gemini-output-capability
branch
from
September 8, 2026 07:57
0862c0a to
bded66b
Compare
aheritier
force-pushed
the
gemini-output-capability
branch
from
September 8, 2026 17:31
bded66b to
d5a25cb
Compare
Add ModelConfig.OutputCapabilities (output_capabilities.image in YAML), a latest-only tri-state override for a model's generative output capability. Explicit false has highest precedence, explicit true follows, and an omitted flag — including output_capabilities: {} — is left for models.dev resolution in the following commit. No capability is ever inferred from the model name.
Reject output_capabilities on first_available selectors because one block cannot unambiguously describe every candidate. Update the schema, model docs, and example, and cover true, false, omitted, and empty-block YAML states, shorthand behavior, cloning, schema strictness, and selector validation.
Resolve image-output capability with one explicit precedence chain: false disables it, true enables it, and an omitted image flag — whether output_capabilities is absent or {} — enables it only when the exact known models.dev record lists image in Modalities.Output. Unknown models, unavailable catalogue data, and lookup failures stay off.
Keep lookup case-insensitive and bounded by the existing models.dev timeout. Capability is never inferred from provider or model-name patterns.
aheritier
force-pushed
the
gemini-output-capability
branch
from
September 8, 2026 20:33
d5a25cb to
51559ff
Compare
aheritier
marked this pull request as ready for review
September 8, 2026 20:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Add latest-only
output_capabilities.imageconfiguration/schema support. Explicit true or false wins. Omitted, empty, or unset metadata consults exact provider-qualified models.dev output metadata; unknown models, unavailable providers, and lookup failures remain disabled. No capability is inferred from a model-name prefix. Numbered configuration packages remain frozen.Part of #3996. Review this PR against its immediate parent, #4017, rather than the aggregate stack against
main.Commit inventory
Head:
51559ff510bf01ea053e3923c329c80ba724dca5; parent SHA:2c5fd913464ef376471cc098b8e9481367f16b6a.b705039ca893933097887e9bbc66ba90231e34f3— feat(Epic: Gemini image output with workspace deliverables and portable session copies #3996): add output_capabilities.image model override51559ff510bf01ea053e3923c329c80ba724dca5— feat(Epic: Gemini image output with workspace deliverables and portable session copies #3996): resolve image output capability from models.devValidation
Build, test compilation, owning-package tests and the named fixture passed at this PR head.
Exact deterministic fixture command:
Matched top-level tests:
pkg/config/latest: 7;pkg/modelinfo: 1.Deterministic scope: the named local fixture exercises this PR boundary with disposable configuration/stores and fake or loopback providers as applicable. Every listed package ran nonzero matching top-level tests.
Deferred/live scope: No new live catalogue/provider run was executed; deterministic resolution covers explicit and omitted metadata. The final stack head passed build, lint, full tests, an uncached full suite, focused race tests and documentation checks in disposable environments. Remote CI is tracked by the checks below; no new paid-provider or active-database validation was run.