From 9ffae47c13862c0942b16016e67725af199a5ace Mon Sep 17 00:00:00 2001 From: Re-bin Date: Fri, 20 Feb 2026 08:21:02 +0000 Subject: [PATCH] refactor(litellm): remove redundant comments in cache_control methods --- nanobot/providers/litellm_provider.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/nanobot/providers/litellm_provider.py b/nanobot/providers/litellm_provider.py index 08c2f53..66751ed 100644 --- a/nanobot/providers/litellm_provider.py +++ b/nanobot/providers/litellm_provider.py @@ -117,7 +117,6 @@ class LiteLLMProvider(LLMProvider): tools: list[dict[str, Any]] | None, ) -> tuple[list[dict[str, Any]], list[dict[str, Any]] | None]: """Return copies of messages and tools with cache_control injected.""" - # Transform the system message new_messages = [] for msg in messages: if msg.get("role") == "system": @@ -131,7 +130,6 @@ class LiteLLMProvider(LLMProvider): else: new_messages.append(msg) - # Add cache_control to the last tool definition new_tools = tools if tools: new_tools = list(tools)