[PR #5051] [MERGED] add model capabilities #11660

Closed
opened 2026-04-12 23:35:00 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5051
Author: @mxyng
Created: 6/14/2024
Status: Merged
Merged: 7/2/2024
Merged by: @mxyng

Base: mainHead: mxyng/capabilities


📝 Commits (4)

📊 Changes

31 files changed (+353 additions, -191 deletions)

View changed files

📝 server/images.go (+48 -27)
📝 server/manifest.go (+11 -9)
📝 server/manifest_test.go (+1 -1)
📝 server/model.go (+2 -2)
📝 server/prompt.go (+7 -11)
📝 server/prompt_test.go (+13 -2)
📝 server/routes.go (+24 -10)
📝 template/alfred.gotmpl (+0 -0)
📝 template/alpaca.gotmpl (+0 -0)
📝 template/chatml.gotmpl (+0 -0)
📝 template/chatqa.gotmpl (+0 -0)
📝 template/codellama-70b-instruct.gotmpl (+0 -0)
📝 template/falcon-instruct.gotmpl (+0 -0)
📝 template/gemma-instruct.gotmpl (+0 -0)
📝 template/granite-instruct.gotmpl (+0 -0)
📝 template/index.json (+0 -0)
📝 template/llama2-chat.gotmpl (+0 -0)
📝 template/llama3-instruct.gotmpl (+0 -0)
📝 template/magicoder.gotmpl (+0 -0)
📝 template/mistral-instruct.gotmpl (+0 -0)

...and 11 more files

📄 Description

detect completion capability by looking at model KVs. with this change, ollama correctly detects a model like jina/jina-embeddings-v2-small-en is an embedding model (as opposed to a text completion model)


🔄 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/5051 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 6/14/2024 **Status:** ✅ Merged **Merged:** 7/2/2024 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/capabilities` --- ### 📝 Commits (4) - [`3f0b309`](https://github.com/ollama/ollama/commit/3f0b309ad4c49c0d87839e50fe6a46163902aba0) remove ManifestV2 - [`58e3fff`](https://github.com/ollama/ollama/commit/58e3fff311f9e7abec20cdfe20fa43958e447aeb) rename templates to template - [`a30915b`](https://github.com/ollama/ollama/commit/a30915bde166b2f392a0ff72c61c9ac53189a962) add capabilities - [`da8e2a0`](https://github.com/ollama/ollama/commit/da8e2a04479f96ad9c57eaf25ed26b79b239b05c) use kvs to detect embedding models ### 📊 Changes **31 files changed** (+353 additions, -191 deletions) <details> <summary>View changed files</summary> 📝 `server/images.go` (+48 -27) 📝 `server/manifest.go` (+11 -9) 📝 `server/manifest_test.go` (+1 -1) 📝 `server/model.go` (+2 -2) 📝 `server/prompt.go` (+7 -11) 📝 `server/prompt_test.go` (+13 -2) 📝 `server/routes.go` (+24 -10) 📝 `template/alfred.gotmpl` (+0 -0) 📝 `template/alpaca.gotmpl` (+0 -0) 📝 `template/chatml.gotmpl` (+0 -0) 📝 `template/chatqa.gotmpl` (+0 -0) 📝 `template/codellama-70b-instruct.gotmpl` (+0 -0) 📝 `template/falcon-instruct.gotmpl` (+0 -0) 📝 `template/gemma-instruct.gotmpl` (+0 -0) 📝 `template/granite-instruct.gotmpl` (+0 -0) 📝 `template/index.json` (+0 -0) 📝 `template/llama2-chat.gotmpl` (+0 -0) 📝 `template/llama3-instruct.gotmpl` (+0 -0) 📝 `template/magicoder.gotmpl` (+0 -0) 📝 `template/mistral-instruct.gotmpl` (+0 -0) _...and 11 more files_ </details> ### 📄 Description detect completion capability by looking at model KVs. with this change, ollama correctly detects a model like [jina/jina-embeddings-v2-small-en](https://ollama.com/jina/jina-embeddings-v2-small-en) is an embedding model (as opposed to a text completion model) --- <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-12 23:35:00 -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#11660