diff --git a/app/api/execute/route.ts b/app/api/function/execute/route.ts similarity index 100% rename from app/api/execute/route.ts rename to app/api/function/execute/route.ts diff --git a/tools/function/execute.ts b/tools/function/execute.ts index e5be8b609..9a80bf665 100644 --- a/tools/function/execute.ts +++ b/tools/function/execute.ts @@ -45,7 +45,7 @@ export const functionExecuteTool: ToolConfig ({ 'Content-Type': 'application/json', diff --git a/tools/index.ts b/tools/index.ts index a57e6324e..86ed05d6d 100644 --- a/tools/index.ts +++ b/tools/index.ts @@ -146,7 +146,7 @@ function getCustomTool(customToolId: string): ToolConfig | undefined { // Request configuration - for custom tools we'll use the execute endpoint request: { - url: '/api/execute', + url: '/api/function/execute', method: 'POST', headers: () => ({ 'Content-Type': 'application/json' }), body: (params: Record) => {