zot/internal/provider
patriceckhart 3ff6d9e6b7 fix(anthropic): drop claude-code identity cache marker
oauth requests now exceed anthropic's 4-breakpoint cache_control
limit when the conversation has 2+ user messages. previous layout
emitted 5 markers: identity + system + tools + 2 user messages.

drop the marker on the small claude-code identity line. it's a few
tokens and gets folded into the cached prefix implicitly when the
request matches turn-over-turn anyway. budget now: system + tools +
last 2 user messages = 4. fits.

reproduces the user-reported error:
  anthropic: http 400 ... A maximum of 4 blocks with cache_control
  may be provided. Found 5.

verified by sending two consecutive prompts through zot rpc on an
oauth credential -- first turn returns the assistant message
cleanly, second turn does too instead of 400ing.
2026-04-19 12:39:33 +02:00
..
anthropic.go fix(anthropic): drop claude-code identity cache marker 2026-04-19 12:39:33 +02:00
cache.go initial commit 2026-04-17 20:36:38 +02:00
discover.go initial commit 2026-04-17 20:36:38 +02:00
merge.go initial commit 2026-04-17 20:36:38 +02:00
models.go initial commit 2026-04-17 20:36:38 +02:00
openai.go fix ci: portable syscall.Select via x/sys/unix; gofmt pass 2026-04-18 10:55:42 +02:00
openai_codex.go fix ci: portable syscall.Select via x/sys/unix; gofmt pass 2026-04-18 10:55:42 +02:00
provider.go initial commit 2026-04-17 20:36:38 +02:00
provider_test.go initial commit 2026-04-17 20:36:38 +02:00
sse.go initial commit 2026-04-17 20:36:38 +02:00