[PR #692] [MERGED] Increase client/server streaming buffer size to prevent token too long error #72586

Closed
opened 2026-05-05 04:07:54 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/692
Author: @BruceMacD
Created: 10/3/2023
Status: Merged
Merged: 10/4/2023
Merged by: @BruceMacD

Base: mainHead: brucemacd/buffer-size


📝 Commits (1)

  • 903d4f1 increase streaming buffer size

📊 Changes

2 files changed (+11 additions, -3 deletions)

View changed files

📝 api/client.go (+6 -3)
📝 llm/llama.go (+5 -0)

📄 Description

In the case of a large input the response from /generate would be very long due to the encoded context length. Increase the buffer size to prevent this error.

resolves #687


🔄 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/692 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 10/3/2023 **Status:** ✅ Merged **Merged:** 10/4/2023 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/buffer-size` --- ### 📝 Commits (1) - [`903d4f1`](https://github.com/ollama/ollama/commit/903d4f1deeec1b733097f0d24c5d1acfddea8a57) increase streaming buffer size ### 📊 Changes **2 files changed** (+11 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `api/client.go` (+6 -3) 📝 `llm/llama.go` (+5 -0) </details> ### 📄 Description In the case of a large input the response from `/generate` would be very long due to the encoded context length. Increase the buffer size to prevent this error. resolves #687 --- <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-05-05 04:07:54 -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#72586