From a8482b1a06d2ad8db60bf367f5aafcf2896cff39 Mon Sep 17 00:00:00 2001 From: alabenayed Date: Thu, 6 Aug 2026 15:43:53 +0300 Subject: [PATCH] fix(anthropic): remove explanatory comment per repo convention Address Greptile review feedback: drop the new comment, since this repo's guidance is not to add comments unless explicitly requested. --- litellm/llms/anthropic/chat/transformation.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/litellm/llms/anthropic/chat/transformation.py b/litellm/llms/anthropic/chat/transformation.py index 022fce01ded..68736023291 100644 --- a/litellm/llms/anthropic/chat/transformation.py +++ b/litellm/llms/anthropic/chat/transformation.py @@ -1935,11 +1935,6 @@ class AnthropicConfig(AnthropicModelInfo, BaseConfig): output_key="top_k", ) - # ``messages`` must be the last key in the serialized request body: Anthropic's - # prompt cache (observed on the Vertex AI global endpoint) keys off the raw - # request bytes, and a stable ``system``/``tools`` prefix only hits the cache - # on repeat turns when ``messages`` (the part that changes every turn) is - # ordered after them, not before. data: Final = { "model": model, **optional_params,