[PR #464] [MERGED] fix num_keep #15436

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/464
Author: @mxyng
Created: 9/3/2023
Status: Merged
Merged: 9/5/2023
Merged by: @mxyng

Base: mxyng/rm-marshal-promptHead: mxyng/fix-num-keep


📝 Commits (1)

📊 Changes

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

View changed files

📝 server/routes.go (+2 -1)

📄 Description

num_keep calculation is erroneously adding a token which causes the llm to output \u001c after truncating


🔄 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/464 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 9/3/2023 **Status:** ✅ Merged **Merged:** 9/5/2023 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `mxyng/rm-marshal-prompt` ← **Head:** `mxyng/fix-num-keep` --- ### 📝 Commits (1) - [`681f3c4`](https://github.com/ollama/ollama/commit/681f3c4c42a645fb3e9cbc4311ae6662d838a684) fix num_keep ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `server/routes.go` (+2 -1) </details> ### 📄 Description num_keep calculation is erroneously adding a token which causes the llm to output `\u001c` after truncating --- <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-16 04:59:18 -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#15436