Skip to content

fix: detect Ollama vision models from naming conventions - #345

Open
manavshrivastavagit wants to merge 1 commit into
andrewyng:mainfrom
manavshrivastavagit:feature/ollama-vision-fix
Open

fix: detect Ollama vision models from naming conventions#345
manavshrivastavagit wants to merge 1 commit into
andrewyng:mainfrom
manavshrivastavagit:feature/ollama-vision-fix

Conversation

@manavshrivastavagit

Copy link
Copy Markdown

Summary

Ollama vision models (e.g. qwen3-vl:8b, llava, bakllava) were unconditionally marked as vision: False in capabilities_for(), causing the agent to replace image attachments with a placeholder text.

Root cause

coworker/providers/capabilities.py set vision=False for every Ollama model regardless of actual vision capability.

Fix

Added a heuristic that inspects the model name for common vision-model naming patterns (-vl, vision, llava, bakllava, cogvlm, minicpm-v). Non-vision Ollama models (e.g. qwen2.5-coder) remain unaffected.

Closes #337

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.

Ollama vision models (e.g. qwen3-vl:8b) not used for image analysis — agent claims "model lacks image processing capabilities"

1 participant