[PR #14917] create: add vision capability detection and fix capability inheritance bug #14916

Open
opened 2026-04-13 01:05:39 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14917
Author: @dhiltgen
Created: 3/17/2026
Status: 🔄 Open

Base: mainHead: create-capability-fixes


📝 Commits (1)

  • 68454de create: detect vision and audio capabilities from config.json

📊 Changes

2 files changed (+31 additions, -14 deletions)

View changed files

📝 x/create/client/create.go (+29 -13)
📝 x/create/client/create_test.go (+2 -1)

📄 Description

Replace architecture-based vision detection with vision_config presence check. Add audio_config detection. Use *map[string]any to correctly handle JSON null (distinguishes null from missing).

Also fixes creating models from existing safetensors based models so they work properly.


🔄 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/14917 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 3/17/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `create-capability-fixes` --- ### 📝 Commits (1) - [`68454de`](https://github.com/ollama/ollama/commit/68454de253d1ccdbf9a57ae6a582b25e3ebf5ca5) create: detect vision and audio capabilities from config.json ### 📊 Changes **2 files changed** (+31 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `x/create/client/create.go` (+29 -13) 📝 `x/create/client/create_test.go` (+2 -1) </details> ### 📄 Description Replace architecture-based vision detection with vision_config presence check. Add audio_config detection. Use *map[string]any to correctly handle JSON null (distinguishes null from missing). Also fixes creating models from existing safetensors based models so they work properly. --- <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-13 01:05:39 -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#14916