mirror of
https://github.com/ollama/ollama.git
synced 2026-08-04 14:56:15 +00:00
launch: disable claude attribution header to preserve KV cache
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 commit is contained in:
parent
5d0000634c
commit
f622b0c5fc
1 changed files with 1 additions and 0 deletions
|
|
@ -59,6 +59,7 @@ func (c *Claude) Run(model string, args []string) error {
|
|||
"ANTHROPIC_BASE_URL="+envconfig.Host().String(),
|
||||
"ANTHROPIC_API_KEY=",
|
||||
"ANTHROPIC_AUTH_TOKEN=ollama",
|
||||
"CLAUDE_CODE_ATTRIBUTION_HEADER=0",
|
||||
)
|
||||
|
||||
env = append(env, c.modelEnvVars(model)...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue