[PR #14918] [MERGED] launch: disable claude attribution header to preserve KV cache #77211

Closed
opened 2026-05-05 09:53:42 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14918
Author: @jessegross
Created: 3/18/2026
Status: Merged
Merged: 3/18/2026
Merged by: @jessegross

Base: mainHead: jessegross/claude-attribution


📝 Commits (1)

  • 5381171 launch: disable claude attribution header to preserve KV cache

📊 Changes

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

View changed files

📝 cmd/launch/claude.go (+1 -0)

📄 Description

Claude Code sends an x-anthropic-billing-header that changes on every request. This is embedded in the system prompt and consequently breaks the KV cache for every request. Given the size of the prompts that Claude Code usees, this has significant performance impact.


🔄 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/14918 **Author:** [@jessegross](https://github.com/jessegross) **Created:** 3/18/2026 **Status:** ✅ Merged **Merged:** 3/18/2026 **Merged by:** [@jessegross](https://github.com/jessegross) **Base:** `main` ← **Head:** `jessegross/claude-attribution` --- ### 📝 Commits (1) - [`5381171`](https://github.com/ollama/ollama/commit/5381171d34ebcdbf56af20e74470b3c24a565ba5) launch: disable claude attribution header to preserve KV cache ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/launch/claude.go` (+1 -0) </details> ### 📄 Description Claude Code sends an x-anthropic-billing-header that changes on every request. This is embedded in the system prompt and consequently breaks the KV cache for every request. Given the size of the prompts that Claude Code usees, this has significant performance impact. --- <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 09:53:42 -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#77211