Skip to content

Upgrade LiteLLM and turn on prompt caching for Claude models #9588

Description

@bobbai00

Task Summary

Prompt caching is off for Claude models. #9576 covers the whole problem; this task changes only this default. Lowering the agent's default step limit is tracked in #9602.

Claude caches only prompts that carry cache marks. Nothing sets them, so every call is billed in full, although the system prompt and tool definitions (11,746 tokens) are identical in every call. LiteLLM 1.94 and later can add the marks for Claude by itself. The version Texera pins, 1.83.10, cannot, and published security advisories affect it.

Proposed: upgrade LiteLLM to a current stable release and turn its automatic prompt caching on. Estimated from recorded conversations, that cuts the agent's input cost by about 55%.

Task Type

  • DevOps / Deployment / CI
  • Performance

Activity

  1. added theissue type on Nov 21, 2026
  2. bobbai00 commented on Nov 21, 2026

    @bobbai00
    ContributorAuthor

    /take

  3. changed the title [-]Cache Claude prompts and lower the agent's default step limit[/-] [+]Cache Claude prompts in the default LiteLLM configuration[/+] on Nov 21, 2026
  4. changed the title [-]Cache Claude prompts in the default LiteLLM configuration[/-] [+]Upgrade LiteLLM and turn on prompt caching for Claude models[/+] on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions