mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
fix: renamed /api/execute to /api/function/execute
This commit is contained in:
@@ -45,7 +45,7 @@ export const functionExecuteTool: ToolConfig<CodeExecutionInput, CodeExecutionOu
|
||||
},
|
||||
|
||||
request: {
|
||||
url: '/api/execute',
|
||||
url: '/api/function/execute',
|
||||
method: 'POST',
|
||||
headers: () => ({
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
+1
-1
@@ -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<string, any>) => {
|
||||
|
||||
Reference in New Issue
Block a user