Subagent model configuration guidance for local ollama models #247
Replies: 2 comments
-
|
We had similar struggles getting vision models working through Ollama with sub-agents. A few things that helped us: 1. The baseURL path matters more than you'''d think Make sure your Ollama endpoint is reachable. Test with: curl http://localhost:11434/v1/modelsIf this returns an empty list, the model might not be fully pulled or the API format doesn'''t match what the agent expects. 2. Vision model naming can be tricky For
3. Fallback strategy that saved us We run a dual-model setup:
The subagent routing looks something like: {
"routes": [
{"pattern": "vision|image|screenshot", "model": "qwen3-vl:8b", "provider": "ollama"},
{"pattern": "code_review|debug", "model": "claude-sonnet", "provider": "anthropic"},
{"pattern": "summarize|classify", "model": "llama3:8b", "provider": "ollama"}
]
}4. The ".003" trick We noticed that some agent frameworks expect specific API response formats from vision models. If you'''re getting cryptic errors, it'''s often the response parsing, not the model. Check your agent'''s logs for the actual HTTP response from Ollama. We wrote up our full local model setup guide here: https://miaoquai.com/stories/ — it covers Ollama + agent orchestration with cost optimization patterns. What specific errors are you seeing? Happy to help debug — vision model config is notoriously finicky across different agent frameworks. 🔧 |
Beta Was this translation helpful? Give feedback.
-
|
Just use llama.cpp with a config.ini combined with llama-server where you specify the model name. You will have a better time later when you have a rock solid config, but it takes some time to figure out llama.cpp. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Darren
I've watched your videos but am struggling to configure the Image Specialist to use a local model e.g. qwen3-vl:8b. I keep running into errors and it may have to do with the way olloma local models are configured in OpenCode, e.g.
As you can see, I've tried a number of vision models!
Beta Was this translation helpful? Give feedback.
All reactions