[PR #9741] [MERGED] fix: error if image requested without vision model #44295

Closed
opened 2026-04-24 23:47:55 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/9741
Author: @mxyng
Created: 3/13/2025
Status: Merged
Merged: 3/13/2025
Merged by: @mxyng

Base: mainHead: mxyng/visionless


📝 Commits (2)

  • 5e2e0b4 fix: error if image requested without vision model
  • 3e102b7 Update model/model.go

📊 Changes

3 files changed (+10 additions, -0 deletions)

View changed files

📝 model/model.go (+2 -0)
📝 model/models/gemma3/model.go (+4 -0)
📝 model/models/mllama/model.go (+4 -0)

📄 Description

this change will return an error to the user if they try to use vision on a model in the ollama engine that does not support vision or has not loaded any vision tensors

resolves #9717


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/9741 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 3/13/2025 **Status:** ✅ Merged **Merged:** 3/13/2025 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/visionless` --- ### 📝 Commits (2) - [`5e2e0b4`](https://github.com/ollama/ollama/commit/5e2e0b46b1b4ae7145011642631a7b507a70fb03) fix: error if image requested without vision model - [`3e102b7`](https://github.com/ollama/ollama/commit/3e102b7dad5d0f41563858c8c938ac26b5f3fd56) Update model/model.go ### 📊 Changes **3 files changed** (+10 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `model/model.go` (+2 -0) 📝 `model/models/gemma3/model.go` (+4 -0) 📝 `model/models/mllama/model.go` (+4 -0) </details> ### 📄 Description this change will return an error to the user if they try to use vision on a model in the ollama engine that does not support vision or has not loaded any vision tensors resolves #9717 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-24 23:47:55 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#44295