File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ import {
3131 getUserEntityPermissions ,
3232} from '@/lib/workspaces/permissions/utils'
3333
34+ export const maxDuration = 3600
35+
3436const logger = createLogger ( 'CopilotChatAPI' )
3537
3638const FileAttachmentSchema = z . object ( {
Original file line number Diff line number Diff line change @@ -8,9 +8,11 @@ import {
88import { authenticateCopilotRequestSessionOnly } from '@/lib/copilot/request-helpers'
99import { SSE_HEADERS } from '@/lib/core/utils/sse'
1010
11+ export const maxDuration = 3600
12+
1113const logger = createLogger ( 'CopilotChatStreamAPI' )
1214const POLL_INTERVAL_MS = 250
13- const MAX_STREAM_MS = 10 * 60 * 1000
15+ const MAX_STREAM_MS = 60 * 60 * 1000
1416
1517function encodeEvent ( event : Record < string , any > ) : Uint8Array {
1618 return new TextEncoder ( ) . encode ( `data: ${ JSON . stringify ( event ) } \n\n` )
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const DEFAULT_COPILOT_MODEL = 'claude-opus-4-5'
4040
4141export const dynamic = 'force-dynamic'
4242export const runtime = 'nodejs'
43- export const maxDuration = 300
43+ export const maxDuration = 3600
4444
4545interface CopilotKeyAuthResult {
4646 success : boolean
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ import {
2222 getUserEntityPermissions ,
2323} from '@/lib/workspaces/permissions/utils'
2424
25+ export const maxDuration = 3600
26+
2527const logger = createLogger ( 'MothershipChatAPI' )
2628
2729const FileAttachmentSchema = z . object ( {
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ import {
1010 getUserEntityPermissions ,
1111} from '@/lib/workspaces/permissions/utils'
1212
13+ export const maxDuration = 3600
14+
1315const logger = createLogger ( 'MothershipExecuteAPI' )
1416
1517const MessageSchema = z . object ( {
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ import { orchestrateCopilotStream } from '@/lib/copilot/orchestrator'
66import { getWorkflowById , resolveWorkflowIdForUser } from '@/lib/workflows/utils'
77import { authenticateV1Request } from '@/app/api/v1/auth'
88
9+ export const maxDuration = 3600
10+
911const logger = createLogger ( 'CopilotHeadlessAPI' )
1012const DEFAULT_COPILOT_MODEL = 'claude-opus-4-5'
1113
Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ export const isTest = env.NODE_ENV === 'test'
2121/**
2222 * Is this the hosted version of the application
2323 */
24- export const isHosted =
25- getEnv ( 'NEXT_PUBLIC_APP_URL' ) === 'https://www.sim.ai' ||
26- getEnv ( 'NEXT_PUBLIC_APP_URL' ) === 'https://www.staging.sim.ai'
24+ export const isHosted = true
25+ // getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.sim.ai' ||
26+ // getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.staging.sim.ai'
2727
2828/**
2929 * Is billing enforcement enabled
You can’t perform that action at this time.
0 commit comments