diff --git a/apps/sim/executor/constants.ts b/apps/sim/executor/constants.ts index a31bed2bec..01814c9b37 100644 --- a/apps/sim/executor/constants.ts +++ b/apps/sim/executor/constants.ts @@ -158,8 +158,8 @@ export const HTTP = { export const AGENT = { DEFAULT_MODEL: 'claude-sonnet-4-5', - DEFAULT_FUNCTION_TIMEOUT: 5000, - REQUEST_TIMEOUT: 120000, + DEFAULT_FUNCTION_TIMEOUT: 600000, // 10 minutes for custom tool code execution + REQUEST_TIMEOUT: 600000, // 10 minutes for LLM API requests CUSTOM_TOOL_PREFIX: 'custom_', } as const diff --git a/apps/sim/lib/execution/constants.ts b/apps/sim/lib/execution/constants.ts index 4fcdab3650..bf095770b9 100644 --- a/apps/sim/lib/execution/constants.ts +++ b/apps/sim/lib/execution/constants.ts @@ -1,10 +1,7 @@ /** * Execution timeout constants * - * These constants define the timeout values for code execution. - * - DEFAULT_EXECUTION_TIMEOUT_MS: The default timeout for executing user code (3 minutes) - * - MAX_EXECUTION_DURATION: The maximum duration for the API route (adds 30s buffer for overhead) + * DEFAULT_EXECUTION_TIMEOUT_MS: The default timeout for executing user code (10 minutes) */ -export const DEFAULT_EXECUTION_TIMEOUT_MS = 180000 // 3 minutes (180 seconds) -export const MAX_EXECUTION_DURATION = 210 // 3.5 minutes (210 seconds) - includes buffer for sandbox creation +export const DEFAULT_EXECUTION_TIMEOUT_MS = 600000 // 10 minutes (600 seconds) diff --git a/apps/sim/tools/http/request.ts b/apps/sim/tools/http/request.ts index add50fe7a9..dfb26dd24d 100644 --- a/apps/sim/tools/http/request.ts +++ b/apps/sim/tools/http/request.ts @@ -40,15 +40,6 @@ export const requestTool: ToolConfig = { type: 'object', description: 'Form data to send (will set appropriate Content-Type)', }, - timeout: { - type: 'number', - default: 10000, - description: 'Request timeout in milliseconds', - }, - validateStatus: { - type: 'object', - description: 'Custom status validation function', - }, }, request: { diff --git a/apps/sim/tools/http/types.ts b/apps/sim/tools/http/types.ts index 68b455c6fe..aee763469a 100644 --- a/apps/sim/tools/http/types.ts +++ b/apps/sim/tools/http/types.ts @@ -8,8 +8,6 @@ export interface RequestParams { params?: TableRow[] pathParams?: Record formData?: Record - timeout?: number - validateStatus?: (status: number) => boolean } export interface RequestResponse extends ToolResponse {