Skip to content

Commit a36454d

Browse files
committed
Fixes
1 parent bd7e090 commit a36454d

8 files changed

Lines changed: 15 additions & 6 deletions

File tree

apps/sim/app/api/copilot/chat/route.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ import {
3131
getUserEntityPermissions,
3232
} from '@/lib/workspaces/permissions/utils'
3333

34+
export const maxDuration = 3600
35+
3436
const logger = createLogger('CopilotChatAPI')
3537

3638
const FileAttachmentSchema = z.object({

apps/sim/app/api/copilot/chat/stream/route.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ import {
88
import { authenticateCopilotRequestSessionOnly } from '@/lib/copilot/request-helpers'
99
import { SSE_HEADERS } from '@/lib/core/utils/sse'
1010

11+
export const maxDuration = 3600
12+
1113
const logger = createLogger('CopilotChatStreamAPI')
1214
const POLL_INTERVAL_MS = 250
13-
const MAX_STREAM_MS = 10 * 60 * 1000
15+
const MAX_STREAM_MS = 60 * 60 * 1000
1416

1517
function encodeEvent(event: Record<string, any>): Uint8Array {
1618
return new TextEncoder().encode(`data: ${JSON.stringify(event)}\n\n`)

apps/sim/app/api/mcp/copilot/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const DEFAULT_COPILOT_MODEL = 'claude-opus-4-5'
4040

4141
export const dynamic = 'force-dynamic'
4242
export const runtime = 'nodejs'
43-
export const maxDuration = 300
43+
export const maxDuration = 3600
4444

4545
interface CopilotKeyAuthResult {
4646
success: boolean

apps/sim/app/api/mothership/chat/route.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ import {
2222
getUserEntityPermissions,
2323
} from '@/lib/workspaces/permissions/utils'
2424

25+
export const maxDuration = 3600
26+
2527
const logger = createLogger('MothershipChatAPI')
2628

2729
const FileAttachmentSchema = z.object({

apps/sim/app/api/mothership/execute/route.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import {
1010
getUserEntityPermissions,
1111
} from '@/lib/workspaces/permissions/utils'
1212

13+
export const maxDuration = 3600
14+
1315
const logger = createLogger('MothershipExecuteAPI')
1416

1517
const MessageSchema = z.object({

apps/sim/app/api/v1/copilot/chat/route.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { orchestrateCopilotStream } from '@/lib/copilot/orchestrator'
66
import { getWorkflowById, resolveWorkflowIdForUser } from '@/lib/workflows/utils'
77
import { authenticateV1Request } from '@/app/api/v1/auth'
88

9+
export const maxDuration = 3600
10+
911
const logger = createLogger('CopilotHeadlessAPI')
1012
const DEFAULT_COPILOT_MODEL = 'claude-opus-4-5'
1113

apps/sim/lib/core/config/feature-flags.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

bun.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)