[PR #5750] [MERGED] stub response #43158

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

📋 Pull Request Information

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

Base: mainHead: mxyng/stub-response


📝 Commits (1)

📊 Changes

1 file changed (+4 additions, -2 deletions)

View changed files

📝 template/template.go (+4 -2)

📄 Description

for compatibility, {{ .Response }} cannot be in any template control flow structures. therefore any template execution should set an empty Response if one should not be rendered otherwise the output will contain <no value> in place of {{ .Response }}


🔄 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/5750 **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/stub-response` --- ### 📝 Commits (1) - [`04e3be6`](https://github.com/ollama/ollama/commit/04e3be691fec4df23e53f038b205e54b5fa0ba91) stub response ### 📊 Changes **1 file changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `template/template.go` (+4 -2) </details> ### 📄 Description for compatibility, `{{ .Response }}` cannot be in any template control flow structures. therefore any template execution should set an empty Response if one should not be rendered otherwise the output will contain `<no value>` in place of `{{ .Response }}` --- <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:24 -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#43158