[PR #5758] [MERGED] marshal json automatically for some template values #43162

Closed
opened 2026-04-24 22:50:40 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5758
Author: @mxyng
Created: 7/17/2024
Status: Merged
Merged: 7/17/2024
Merged by: @jmorganca

Base: mainHead: mxyng/tools


📝 Commits (1)

  • 0ef1330 marshal json automatically for some template values

📊 Changes

8 files changed (+72 additions, -52 deletions)

View changed files

📝 api/types.go (+48 -25)
📝 server/model.go (+10 -8)
📝 server/model_test.go (+4 -9)
📝 server/testdata/tools/command-r-plus.gotmpl (+1 -1)
📝 server/testdata/tools/firefunction.gotmpl (+2 -2)
📝 server/testdata/tools/llama3-groq-tool-use.gotmpl (+2 -2)
📝 server/testdata/tools/mistral.gotmpl (+2 -2)
📝 template/template.go (+3 -3)

📄 Description

No description provided


🔄 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/5758 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 7/17/2024 **Status:** ✅ Merged **Merged:** 7/17/2024 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `mxyng/tools` --- ### 📝 Commits (1) - [`0ef1330`](https://github.com/ollama/ollama/commit/0ef13300916f9d149f6c3a3fd2913eea57f226d6) marshal json automatically for some template values ### 📊 Changes **8 files changed** (+72 additions, -52 deletions) <details> <summary>View changed files</summary> 📝 `api/types.go` (+48 -25) 📝 `server/model.go` (+10 -8) 📝 `server/model_test.go` (+4 -9) 📝 `server/testdata/tools/command-r-plus.gotmpl` (+1 -1) 📝 `server/testdata/tools/firefunction.gotmpl` (+2 -2) 📝 `server/testdata/tools/llama3-groq-tool-use.gotmpl` (+2 -2) 📝 `server/testdata/tools/mistral.gotmpl` (+2 -2) 📝 `template/template.go` (+3 -3) </details> ### 📄 Description _No description provided_ --- <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-24 22:50:40 -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#43162