[PR #15062] [MERGED] api/show: overwrite basename for copilot chat #25536

Closed
opened 2026-04-19 18:16:10 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/15062
Author: @drifkin
Created: 3/25/2026
Status: Merged
Merged: 3/25/2026
Merged by: @drifkin

Base: mainHead: drifkin/basename


📝 Commits (2)

  • 1436662 api/show: overwrite basename for copilot chat
  • 7d1cecc add tests

📊 Changes

2 files changed (+117 additions, -0 deletions)

View changed files

📝 server/routes.go (+12 -0)
📝 server/routes_test.go (+105 -0)

📄 Description

Copilot Chat prefers to use general.basename in the built-in Ollama integration, but this name isn't usually shown directly to users (and there may be many models that share this name). Instead we pass back req.Model, which for this extension is the value that we return from /api/tags


🔄 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/15062 **Author:** [@drifkin](https://github.com/drifkin) **Created:** 3/25/2026 **Status:** ✅ Merged **Merged:** 3/25/2026 **Merged by:** [@drifkin](https://github.com/drifkin) **Base:** `main` ← **Head:** `drifkin/basename` --- ### 📝 Commits (2) - [`1436662`](https://github.com/ollama/ollama/commit/143666279193d6d16288bff69ca66de5a56105c3) api/show: overwrite basename for copilot chat - [`7d1cecc`](https://github.com/ollama/ollama/commit/7d1cecc2b08dd4094f90abe3a037d7f09e34b232) add tests ### 📊 Changes **2 files changed** (+117 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `server/routes.go` (+12 -0) 📝 `server/routes_test.go` (+105 -0) </details> ### 📄 Description Copilot Chat prefers to use `general.basename` in the built-in Ollama integration, but this name isn't usually shown directly to users (and there may be many models that share this name). Instead we pass back `req.Model`, which for this extension is the value that we return from `/api/tags` --- <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-19 18:16:10 -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#25536