[PR #4910] [MERGED] fix create model when template detection errors #11616

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

📋 Pull Request Information

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

Base: mainHead: mxyng/detect-chat-template


📝 Commits (1)

  • 030e765 fix create model when template detection errors

📊 Changes

7 files changed (+77 additions, -55 deletions)

View changed files

📝 llm/gguf.go (+4 -14)
📝 server/images.go (+10 -11)
📝 server/routes_create_test.go (+56 -24)
📝 server/routes_delete_test.go (+2 -2)
📝 server/routes_list_test.go (+1 -1)
📝 server/routes_test.go (+2 -2)
📝 templates/template.go (+2 -1)

📄 Description

this change fixes a bug where a template detection error will cause create to error instead of not including a template


🔄 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/4910 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 6/7/2024 **Status:** ✅ Merged **Merged:** 6/7/2024 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/detect-chat-template` --- ### 📝 Commits (1) - [`030e765`](https://github.com/ollama/ollama/commit/030e765e7667526e6ee6f3fba2074bee3092a009) fix create model when template detection errors ### 📊 Changes **7 files changed** (+77 additions, -55 deletions) <details> <summary>View changed files</summary> 📝 `llm/gguf.go` (+4 -14) 📝 `server/images.go` (+10 -11) 📝 `server/routes_create_test.go` (+56 -24) 📝 `server/routes_delete_test.go` (+2 -2) 📝 `server/routes_list_test.go` (+1 -1) 📝 `server/routes_test.go` (+2 -2) 📝 `templates/template.go` (+2 -1) </details> ### 📄 Description this change fixes a bug where a template detection error will cause create to error instead of not including a template --- <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:33:44 -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#11616