From 813823995c07bf23606d56a1a44d6e820e3d74a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Tue, 11 Nov 2025 12:22:27 +0100 Subject: [PATCH] fix: disable prompt caching for claude-sonnet-4.5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Explicitly set drop_params and supports_prompt_caching=false for claude-sonnet-4.5 model to prevent prompt_cache_key parameter from being sent to Anthropic API. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- ai/litellm-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ai/litellm-config.yaml b/ai/litellm-config.yaml index f5dc31e..55caa58 100644 --- a/ai/litellm-config.yaml +++ b/ai/litellm-config.yaml @@ -8,6 +8,8 @@ model_list: litellm_params: model: anthropic/claude-sonnet-4-5-20250929 api_key: os.environ/ANTHROPIC_API_KEY + drop_params: true + supports_prompt_caching: false - model_name: claude-3-5-sonnet litellm_params: