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(web): use self.api_key instead of undefined api_key
Yongfeng Huang7a3788fee93b
diff --git a/nanobot/agent/tools/web.py b/nanobot/agent/tools/web.pyindex 56956c30e..7860f12ea 100644--- a/nanobot/agent/tools/web.py+++ b/nanobot/agent/tools/web.py@@ -80,7 +80,7 @@ class WebSearchTool(Tool):r = await client.get("https://api.search.brave.com/res/v1/web/search",params={"q": query, "count": n},- headers={"Accept": "application/json", "X-Subscription-Token": api_key},+ headers={"Accept": "application/json", "X-Subscription-Token": self.api_key},timeout=10.0)r.raise_for_status()