Skip to content

Commit 34283b5

Browse files
committed
Fix dynimp
1 parent e024f22 commit 34283b5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
} from '@/lib/copilot/chat-streaming'
1515
import { COPILOT_REQUEST_MODES } from '@/lib/copilot/models'
1616
import { orchestrateCopilotStream } from '@/lib/copilot/orchestrator'
17+
import { getStreamMeta, readStreamEvents } from '@/lib/copilot/orchestrator/stream/buffer'
1718
import {
1819
authenticateCopilotRequestSessionOnly,
1920
createBadRequestResponse,
@@ -461,9 +462,6 @@ export async function GET(req: NextRequest) {
461462

462463
if (chat.conversationId) {
463464
try {
464-
const { getStreamMeta, readStreamEvents } = await import(
465-
'@/lib/copilot/orchestrator/stream/buffer'
466-
)
467465
const [meta, events] = await Promise.all([
468466
getStreamMeta(chat.conversationId),
469467
readStreamEvents(chat.conversationId, 0),

0 commit comments

Comments
 (0)