Bug
The image tool rejects all ollama/ provider models with 'Unknown model' even after the fix in #59943 (2026.4.14).
Environment
- OpenClaw 2026.4.14 (323493f)
- macOS Darwin 25.4.0 (arm64)
- Node v25.6.1
Config
"imageModel": {
"primary": "ollama/gemma4:e4b",
"fallbacks": ["ollama/kimi-k2.5:cloud", "ollama/llava:13b"]
}
Models are registered and visible via openclaw models list:
ollama/gemma4:e4b text+image 128k yes yes image
ollama/kimi-k2.5:cloud text+image 128k yes yes img-fallback#1
ollama/llava:13b text+image 4k yes yes img-fallback#2
Error
All image models failed (3):
ollama/gemma4:e4b: Unknown model: ollama/gemma4:e4b
ollama/kimi-k2.5:cloud: Unknown model: ollama/kimi-k2.5:cloud
ollama/llava:13b: Unknown model: ollama/llava:13b
Verification
- Direct ollama API calls work perfectly:
curl http://127.0.0.1:11434/api/generate with model gemma4:e4b and images returns correct results
normalizeModelRef('ollama', 'gemma4:e4b') returns {provider: 'ollama', model: 'gemma4:e4b'} correctly
- The fix code IS present in
dist/image-DQ3Bkt42.js line 23
- Full gateway restart does not resolve
openclaw doctor --non-interactive shows no errors
Hypothesis
The model registry find('ollama', 'gemma4:e4b') call is not matching ollama models. The models are registered under models.providers.ollama in config but the image tool's registry instance may not be the same one populated from that config path, OR the find() method is using a different key format than what the ollama provider registration produces.
Related: #59943
Bug
The image tool rejects all ollama/ provider models with 'Unknown model' even after the fix in #59943 (2026.4.14).
Environment
Config
Models are registered and visible via
openclaw models list:Error
Verification
curl http://127.0.0.1:11434/api/generatewith modelgemma4:e4band images returns correct resultsnormalizeModelRef('ollama', 'gemma4:e4b')returns{provider: 'ollama', model: 'gemma4:e4b'}correctlydist/image-DQ3Bkt42.jsline 23openclaw doctor --non-interactiveshows no errorsHypothesis
The model registry
find('ollama', 'gemma4:e4b')call is not matching ollama models. The models are registered undermodels.providers.ollamain config but the image tool's registry instance may not be the same one populated from that config path, OR the find() method is using a different key format than what the ollama provider registration produces.Related: #59943