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
fix: check gateway's supports_prompt_caching instead of always returning False
Re-bincc04bc4dd180
diff --git a/nanobot/providers/litellm_provider.py b/nanobot/providers/litellm_provider.pyindex edeb5c678..58c9ac242 100644--- a/nanobot/providers/litellm_provider.py+++ b/nanobot/providers/litellm_provider.py@@ -111,7 +111,7 @@ class LiteLLMProvider(LLMProvider):def _supports_cache_control(self, model: str) -> bool:"""Return True when the provider supports cache_control on content blocks."""if self._gateway is not None:- return False+ return self._gateway.supports_prompt_cachingspec = find_by_model(model)return spec is not None and spec.supports_prompt_caching