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: not imported when LiteLLMProvider is not used
hcanyza08aae93e6c8
diff --git a/nanobot/cli/commands.py b/nanobot/cli/commands.pyindex b75a2bc0f..2597928c3 100644--- a/nanobot/cli/commands.py+++ b/nanobot/cli/commands.py@@ -200,8 +200,6 @@ def onboard():def _make_provider(config: Config):"""Create the appropriate LLM provider from config."""- from nanobot.providers.custom_provider import CustomProvider- from nanobot.providers.litellm_provider import LiteLLMProviderfrom nanobot.providers.openai_codex_provider import OpenAICodexProvidermodel = config.agents.defaults.model@@ -213,6 +211,7 @@ def _make_provider(config: Config):return OpenAICodexProvider(default_model=model)# Custom: direct OpenAI-compatible endpoint, bypasses LiteLLM+ from nanobot.providers.custom_provider import CustomProviderif provider_name == "custom":return CustomProvider(api_key=p.api_key if p else "no-key",@@ -220,6 +219,7 @@ def _make_provider(config: Config):default_model=model,)+ from nanobot.providers.litellm_provider import LiteLLMProviderfrom nanobot.providers.registry import find_by_namespec = find_by_name(provider_name)if not model.startswith("bedrock/") and not (p and p.api_key) and not (spec and spec.is_oauth):