Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/sim/executor/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 2 additions & 5 deletions apps/sim/lib/execution/constants.ts
Original file line number Diff line number Diff line change
@@ -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)
9 changes: 0 additions & 9 deletions apps/sim/tools/http/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,6 @@ export const requestTool: ToolConfig<RequestParams, RequestResponse> = {
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: {
Expand Down
2 changes: 0 additions & 2 deletions apps/sim/tools/http/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ export interface RequestParams {
params?: TableRow[]
pathParams?: Record<string, string>
formData?: Record<string, string | Blob>
timeout?: number
validateStatus?: (status: number) => boolean
}

export interface RequestResponse extends ToolResponse {
Expand Down