Repository navigation
Conversation
Contributor
Automated Reviewer SuggestionsBased on the
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9589 +/- ##
=========================================
Coverage 91.57% 91.57%
Complexity 5182 5182
=========================================
Files 1300 1300
Lines 58131 58131
Branches 7615 7615
=========================================
Hits 53235 53235
Misses 2958 2958
Partials 1938 1938
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
Author
|
@sshiv012 could you take a look? This is part of #9576: it turns on prompt caching for Claude models. Also I request @parshimers 's review as you are at |
1 task done
bobbai00
force-pushed
the
feat/agent-prompt-caching-step-limit
branch
from
November 21, 2026 08:08
3c25cfc to
b79b7de
Compare
bobbai00
force-pushed
the
feat/agent-prompt-caching-step-limit
branch
from
November 21, 2026 09:01
b79b7de to
18dd730
Compare
This was referenced Nov 22, 2026
bobbai00
force-pushed
the
feat/agent-prompt-caching-step-limit
branch
from
November 24, 2026 06:55
18dd730 to
c68d6ef
Compare
Claude caches only prompts that carry cache marks, and nothing in Texera set them, so every agent call was billed in full. LiteLLM 1.94 and later can add the marks itself with enable_anthropic_prompt_caching, so pin LiteLLM 1.108.17 (its long-term support line) instead of 1.83.10 and turn that setting on in every default config.
bobbai00
force-pushed
the
feat/agent-prompt-caching-step-limit
branch
from
November 24, 2026 23:38
c68d6ef to
5c82bfe
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this PR?
Claude caches only prompts that carry cache marks, and nothing set them, so every agent call was billed in full. LiteLLM 1.94 and later can add the marks itself, so this PR:
bin/single-node/docker-compose.yml,bin/k8s/values*.yamlenable_anthropic_prompt_caching: truelitellm_settingsinbin/litellm-config.yaml,bin/single-node/litellm-config.yaml,bin/k8s/values*.yamlLiteLLM then marks the system prompt and the latest message of every Claude request. The agent rewrites its latest message on every call, so for the agent only the system prompt and tool definitions are reused.
The upgrade also fixes five published advisories that affect 1.83.10, two rated high (GHSA-g5ff-637f-6q2m, GHSA-7488-6r32-c95q). LiteLLM 1.108 refuses to start without a master key; the shipped
.envand Helm values set one.Any related issues, documentation, discussions?
Closes #9588
Part of #9576
Docs: LiteLLM automatic checkpoints for Claude
How was this PR tested?
bin/k8s/tests/test_helm_values.shpasses. Not run against the real Claude API.Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Fable 5.2, Claude Opus 5.5)