diff --git a/shinkai-bin/shinkai-node/src/network/v2_api/api_v2_commands_tools.rs b/shinkai-bin/shinkai-node/src/network/v2_api/api_v2_commands_tools.rs index 311873d18..a1053c8ae 100644 --- a/shinkai-bin/shinkai-node/src/network/v2_api/api_v2_commands_tools.rs +++ b/shinkai-bin/shinkai-node/src/network/v2_api/api_v2_commands_tools.rs @@ -3255,11 +3255,15 @@ start().then(() => {{ })?; // First try to open with cursor - let cursor_open = Command::new("code").arg(temp_dir.clone()).spawn(); + let cursor_open = Command::new("cursor").arg(temp_dir.clone()).spawn(); if cursor_open.is_err() { - // If cursor fails, try with open - // Ignore error if any. - let _ = open::that(temp_dir.clone()); + // If cursor fails try with the "code" command + let code_open = Command::new("code").arg(temp_dir.clone()).spawn(); + if code_open.is_err() { + // If cursor and code fails, try with open + // Ignore error if any. + let _ = open::that(temp_dir.clone()); + } } // Create parameters.json diff --git a/shinkai-libs/shinkai-http-api/src/node_api_router.rs b/shinkai-libs/shinkai-http-api/src/node_api_router.rs index b85783951..a88380f41 100644 --- a/shinkai-libs/shinkai-http-api/src/node_api_router.rs +++ b/shinkai-libs/shinkai-http-api/src/node_api_router.rs @@ -125,6 +125,7 @@ pub async fn run_api( "Authorization", "x-shinkai-tool-id", "x-shinkai-app-id", + "x-shinkai-llm-provider", ]); let v1_routes = warp::path("v1").and(