[PR #4488] [MERGED] Prompt caching for Anthropic LLM and Agent providers #4647

Closed
opened 2026-02-22 18:36:15 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4488
Author: @shatfield4
Created: 10/3/2025
Status: Merged
Merged: 11/20/2025
Merged by: @timothycarambat

Base: masterHead: 2500-feat-prompt-caching-for-claude-sonnet-35


📝 Commits (4)

  • 8b71961 prompt caching for anthropic llm and agent providers
  • eccfd9f Merge branch 'master' into 2500-feat-prompt-caching-for-claude-sonnet-35
  • dbc82da Merge branch 'master' into 2500-feat-prompt-caching-for-claude-sonnet-35
  • d5cb4e4 add UI for control of ENV

📊 Changes

7 files changed (+158 additions, -7 deletions)

View changed files

📝 docker/.env.example (+1 -0)
📝 frontend/src/components/LLMSelection/AnthropicAiOptions/index.jsx (+52 -1)
📝 server/.env.example (+1 -0)
📝 server/models/systemSettings.js (+1 -0)
📝 server/utils/AiProviders/anthropic/index.js (+50 -3)
📝 server/utils/agents/aibitat/providers/anthropic.js (+44 -3)
📝 server/utils/helpers/updateENV.js (+9 -0)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #2500

What is in this change?

  • Add optional ENV for Anthropic prompt caching
  • Update .example.env showing how to enable feature

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 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/Mintplex-Labs/anything-llm/pull/4488 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 10/3/2025 **Status:** ✅ Merged **Merged:** 11/20/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `2500-feat-prompt-caching-for-claude-sonnet-35` --- ### 📝 Commits (4) - [`8b71961`](https://github.com/Mintplex-Labs/anything-llm/commit/8b71961767205562da5715db8922a343b52ba208) prompt caching for anthropic llm and agent providers - [`eccfd9f`](https://github.com/Mintplex-Labs/anything-llm/commit/eccfd9f7fad94cf788f3ed9674b64c9a94708772) Merge branch 'master' into 2500-feat-prompt-caching-for-claude-sonnet-35 - [`dbc82da`](https://github.com/Mintplex-Labs/anything-llm/commit/dbc82da670b91a725c8b4be15038ea4ff7048447) Merge branch 'master' into 2500-feat-prompt-caching-for-claude-sonnet-35 - [`d5cb4e4`](https://github.com/Mintplex-Labs/anything-llm/commit/d5cb4e49a69301d05c951e15e52c47a294bdd846) add UI for control of ENV ### 📊 Changes **7 files changed** (+158 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `docker/.env.example` (+1 -0) 📝 `frontend/src/components/LLMSelection/AnthropicAiOptions/index.jsx` (+52 -1) 📝 `server/.env.example` (+1 -0) 📝 `server/models/systemSettings.js` (+1 -0) 📝 `server/utils/AiProviders/anthropic/index.js` (+50 -3) 📝 `server/utils/agents/aibitat/providers/anthropic.js` (+44 -3) 📝 `server/utils/helpers/updateENV.js` (+9 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #2500 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> - Add optional ENV for Anthropic prompt caching - Update .example.env showing how to enable feature ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [ ] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:36:15 -05:00
yindo closed this issue 2026-02-22 18:36:15 -05:00
yindo changed title from [PR #4488] Prompt caching for Anthropic LLM and Agent providers to [PR #4488] [MERGED] Prompt caching for Anthropic LLM and Agent providers 2026-06-05 15:19:37 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4647