From d666000279c5c094d6087f26ff372768bb6ac44f Mon Sep 17 00:00:00 2001 From: Nico Arqueros Date: Thu, 9 Jan 2025 17:45:36 -0600 Subject: [PATCH] update --- shinkai-bin/shinkai-node/src/managers/tool_router.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shinkai-bin/shinkai-node/src/managers/tool_router.rs b/shinkai-bin/shinkai-node/src/managers/tool_router.rs index ecb643e35..81db4f399 100644 --- a/shinkai-bin/shinkai-node/src/managers/tool_router.rs +++ b/shinkai-bin/shinkai-node/src/managers/tool_router.rs @@ -148,7 +148,7 @@ impl ToolRouter { let start_time = Instant::now(); let url = env::var("SHINKAI_TOOLS_DIRECTORY_URL") - .map_err(|_| ToolError::MissingConfigError("SHINKAI_TOOLS_DIRECTORY_URL not set".to_string()))?; + .unwrap_or_else(|_| "https://download.shinkai.com/tools/directory.json".to_string()); let response = reqwest::get(url).await.map_err(|e| ToolError::RequestError(e))?;