Skip to content

fix(providers): honor live custom model input modalities - #1659

Merged
jhrozek merged 2 commits into
mainfrom
issue-1637-custom-provider-modalities
Sep 17, 2026
Merged

jhrozek merged 2 commits into
mainfrom
issue-1637-custom-provider-modalities

Conversation

@jhrozek

@jhrozek jhrozek commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Closes #1637

Summary

  • preserve explicit input modalities returned by OpenAI-compatible custom-provider model listings
  • use the live declaration to prevent text-only models from advertising image input
  • retain the adapter-capability fallback when the provider omits modality metadata
  • rename the Mecatui img badge to image input

Verification

  • go test ./internal/adapter/openaicompat -run 'TestListModels_(MappingFromFixture|PreservesDeclaredInputModalities)$'
  • go test ./internal/app -run 'TestCustomProviderLiveModalitiesAreAuthoritative$'
  • go test ./cmd/mecatui/ui -run 'TestModelCapSegmentsDescribeImageInput$'
  • git diff --check

Full monorepo gates were intentionally not run for this focused change.

jhrozek and others added 2 commits September 16, 2026 23:23
Preserve explicit input modality declarations from OpenAI-compatible model listings so text-only custom models do not advertise image input. Keep omitted metadata on the established adapter-capability fallback, and clarify the Mecatui badge as image input.

Co-authored-by: mecatl <[email protected]>
The modality tag went from "img" to "image input", widening the picker
box; regenerate via task test:golden.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@jhrozek
jhrozek merged commit a60ad34 into main Sep 17, 2026
35 checks passed
@jhrozek
jhrozek deleted the issue-1637-custom-provider-modalities branch September 17, 2026 11:23
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Sep 21, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom provider model modalities are ignored and text-only models show img

1 participant