[PR #5734] [MERGED] server: validate template #22447

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5734
Author: @joshyan1
Created: 7/17/2024
Status: Merged
Merged: 7/19/2024
Merged by: @joshyan1

Base: mainHead: jyan/parse-temp


📝 Commits (6)

📊 Changes

3 files changed (+53 additions, -3 deletions)

View changed files

📝 server/images.go (+6 -0)
📝 server/routes.go (+11 -3)
📝 server/routes_create_test.go (+36 -0)

📄 Description

tries to parse template and returns error if it fails.

resolves: https://github.com/ollama/ollama/issues/5449


🔄 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/5734 **Author:** [@joshyan1](https://github.com/joshyan1) **Created:** 7/17/2024 **Status:** ✅ Merged **Merged:** 7/19/2024 **Merged by:** [@joshyan1](https://github.com/joshyan1) **Base:** `main` ← **Head:** `jyan/parse-temp` --- ### 📝 Commits (6) - [`5bfb07b`](https://github.com/ollama/ollama/commit/5bfb07b500fe1dfe845e2523513b5fc8644a8149) validate template - [`f7b6cd7`](https://github.com/ollama/ollama/commit/f7b6cd793453127542ad65dd5c0b444442cc15f7) tests - [`3e89435`](https://github.com/ollama/ollama/commit/3e89435605fe8de0b4a470649d848d8d62228313) bad request to templ err - [`9b5bf86`](https://github.com/ollama/ollama/commit/9b5bf861dd3726ccb3886b6490ec7ea5a996cc8c) use new err - [`aaec2be`](https://github.com/ollama/ollama/commit/aaec2be2eec906ec83f837f009f0f103ba5ca353) gin header - [`ca1fbc5`](https://github.com/ollama/ollama/commit/ca1fbc5789e6a7ea525d0d9aa4637b62b1ae5fac) cmt ### 📊 Changes **3 files changed** (+53 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `server/images.go` (+6 -0) 📝 `server/routes.go` (+11 -3) 📝 `server/routes_create_test.go` (+36 -0) </details> ### 📄 Description tries to parse template and returns error if it fails. resolves: https://github.com/ollama/ollama/issues/5449 --- <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 16:20:12 -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#22447