Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
refactor(litellm): remove redundant comments in cache_control methods
Re-bin9ffae47c1386
diff --git a/nanobot/providers/litellm_provider.py b/nanobot/providers/litellm_provider.pyindex 08c2f532c..66751edd3 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 messagenew_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 definitionnew_tools = toolsif tools:new_tools = list(tools)