mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 12:14:46 +00:00
Ollama chat models already support image inputs (extensions/ollama/src/stream.ts extracts image parts and forwards them via the Ollama API), but the ollama plugin did not register a MediaUnderstandingProvider. The image tool's provider registry therefore had no 'ollama' entry, so requests like `imageModel: 'ollama/qwen2.5vl:7b'` failed to resolve and fell back to unrelated providers. Register ollamaMediaUnderstandingProvider with: - capabilities: ['image'] - describeImage/describeImages wired to the shared core helpers (reuses the same pi-ai complete path Ollama chat already goes through) - no defaultModels or autoPriority: Ollama vision support depends on which model the user has pulled, so we don't pick a canonical default and don't auto-steal image duty from configured providers. Fixes #69071 (and supersedes #60280).
Ollama Provider
Bundled provider plugin for Ollama discovery and setup.