From 74180549b15628d5b521c3ae86bb0eb7e1becb4e Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Tue, 4 Mar 2025 13:48:27 -0800 Subject: [PATCH] fix: renamed /api/execute to /api/function/execute --- app/api/{ => function}/execute/route.ts | 0 tools/function/execute.ts | 2 +- tools/index.ts | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename app/api/{ => function}/execute/route.ts (100%) 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) => {