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: use correct ZAI_API_KEY for Zhipu/GLM models
wcmolinfea4a6bba854
diff --git a/nanobot/providers/litellm_provider.py b/nanobot/providers/litellm_provider.pyindex d010d81bd..d2880e1c9 100644--- a/nanobot/providers/litellm_provider.py+++ b/nanobot/providers/litellm_provider.py@@ -52,7 +52,7 @@ class LiteLLMProvider(LLMProvider):elif "gemini" in default_model.lower():os.environ.setdefault("GEMINI_API_KEY", api_key)elif "zhipu" in default_model or "glm" in default_model or "zai" in default_model:- os.environ.setdefault("ZHIPUAI_API_KEY", api_key)+ os.environ.setdefault("ZAI_API_KEY", api_key)elif "groq" in default_model:os.environ.setdefault("GROQ_API_KEY", api_key)