Skip to content

fix(provider): default custom models to image input#33453

Open
rekram1-node wants to merge 1 commit into
devfrom
custom-image-defaults
Open

fix(provider): default custom models to image input#33453
rekram1-node wants to merge 1 commit into
devfrom
custom-image-defaults

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • default new custom models to text and image input with text output
  • default legacy attachment support on while preserving explicit and inherited modalities
  • lower V1 attachment settings into V2 capability modalities without adding attachment to core V2
  • preserve neutral ModelV2.Info.empty() capabilities and document the temporary config-plugin default boundary

Issues

Fixes #20802
Fixes #30071

Addresses the image-input portion of #22673.

Same root cause / historical reports:

Also addresses the custom-model image-default symptoms reported in these broader or mixed issues:

Related modalities discoverability reports: #9897 and #25229. This PR removes the need to specify image modalities for the default custom-model case, but does not add documentation for explicit modality overrides.

Not covered here: terminal clipboard extraction, TUI drag-and-drop, Read/MCP tool-result media handling, PDFs, malformed image_url payloads, provider-side image errors, or genuinely text-only models.

Test plan

  • bun test test/config/config.test.ts test/config/provider.test.ts test/model.test.ts in packages/core
  • bun test test/provider/provider.test.ts in packages/opencode
  • bun typecheck in packages/core
  • bun typecheck in packages/opencode
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant