Skip to content

Commit

Permalink
Merge pull request #784 from dcSpark/nico/default_shinkai_tooling
Browse files Browse the repository at this point in the history
update with a default tools directory url
  • Loading branch information
nicarq authored Jan 10, 2025
2 parents cefa093 + d666000 commit 64f01b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shinkai-bin/shinkai-node/src/managers/tool_router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))?;

Expand Down

0 comments on commit 64f01b2

Please sign in to comment.