fix(providers): mark image-capable OpenRouter models as vision-capable - #482
Open
mousamax wants to merge 1 commit into
Open
fix(providers): mark image-capable OpenRouter models as vision-capable#482mousamax wants to merge 1 commit into
mousamax wants to merge 1 commit into
Conversation
lwxyfer
added a commit
to lwxyfer/openworker
that referenced
this pull request
Aug 10, 2026
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.
Fixes #481.
What was broken: all four curated OpenRouter entries use
_AGENTIC, which isvision=False. OpenRouter declares image input for Kimi K2.6 and Llama 4 Maverick. Sinceengine.py:1085-1096swaps image parts for a placeholder on non-vision models, the image never left the machine and the model replied that it could not see it.Fix: both entries now carry vision. They use an inline
ModelCapabilitiesrather than_AGENTIC_VISION, which would also setpdf=True- PDFs stay unverified over the compat surface, so these fall back throughpdf_support.pyliketogether:moonshotai/Kimi-K3. GLM-5.2 and DeepSeek V4 Pro are text-only upstream and are unchanged.Source:
GET https://openrouter.ai/api/v1/models,architecture.input_modalities, checked 2026-08-09.Verification:
New test pins all four ids against the declared modalities.
Live, with an OpenRouter key on Kimi K2.6 via OpenRouter. Before:
After: