From 301fba568b7d074e17673ae3f029fecd55621c48 Mon Sep 17 00:00:00 2001 From: Re-bin Date: Thu, 5 Feb 2026 08:55:41 +0000 Subject: [PATCH] refactor: remove redundant env var setting, add DeepSeek to docs --- README.md | 1 + nanobot/providers/litellm_provider.py | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 47f9315..923ab64 100644 --- a/README.md +++ b/README.md @@ -306,6 +306,7 @@ Config file: `~/.nanobot/config.json` | `openrouter` | LLM (recommended, access to all models) | [openrouter.ai](https://openrouter.ai) | | `anthropic` | LLM (Claude direct) | [console.anthropic.com](https://console.anthropic.com) | | `openai` | LLM (GPT direct) | [platform.openai.com](https://platform.openai.com) | +| `deepseek` | LLM (DeepSeek direct) | [platform.deepseek.com](https://platform.deepseek.com) | | `groq` | LLM + **Voice transcription** (Whisper) | [console.groq.com](https://console.groq.com) | | `gemini` | LLM (Gemini direct) | [aistudio.google.com](https://aistudio.google.com) | diff --git a/nanobot/providers/litellm_provider.py b/nanobot/providers/litellm_provider.py index eeaca94..d010d81 100644 --- a/nanobot/providers/litellm_provider.py +++ b/nanobot/providers/litellm_provider.py @@ -107,10 +107,6 @@ class LiteLLMProvider(LLMProvider): if "gemini" in model.lower() and not model.startswith("gemini/"): model = f"gemini/{model}" - # Force set env vars for the provider based on model - if "deepseek" in model: - os.environ["DEEPSEEK_API_KEY"] = self.api_key - kwargs: dict[str, Any] = { "model": model, "messages": messages,