[PR #10446] [CLOSED] fix incorrect chat truncation #59940

Closed
opened 2026-04-29 14:51:46 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/10446
Author: @drifkin
Created: 4/28/2025
Status: Closed

Base: mainHead: drifkin/chat-truncation-fix


📝 Commits (1)

  • d20cd8d fix incorrect chat truncation

📊 Changes

5 files changed (+52 additions, -18 deletions)

View changed files

📝 integration/embed_test.go (+16 -12)
📝 server/routes.go (+10 -0)
📝 server/routes_generate_test.go (+12 -4)
📝 server/sched.go (+14 -1)
📝 server/sched_test.go (+0 -1)

📄 Description

The dynamically calculated NumCtx value wasn't making it all the way to the chat handler

Fixes: #10441


🔄 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/10446 **Author:** [@drifkin](https://github.com/drifkin) **Created:** 4/28/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `drifkin/chat-truncation-fix` --- ### 📝 Commits (1) - [`d20cd8d`](https://github.com/ollama/ollama/commit/d20cd8df8012a4600c3caf3e64b3d17c40f58903) fix incorrect chat truncation ### 📊 Changes **5 files changed** (+52 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `integration/embed_test.go` (+16 -12) 📝 `server/routes.go` (+10 -0) 📝 `server/routes_generate_test.go` (+12 -4) 📝 `server/sched.go` (+14 -1) 📝 `server/sched_test.go` (+0 -1) </details> ### 📄 Description The dynamically calculated `NumCtx` value wasn't making it all the way to the chat handler Fixes: #10441 --- <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-29 14:51:46 -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#59940