Skip to content

Commit 52aff4d

Browse files
committed
fix build
1 parent 3a3bddd commit 52aff4d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

apps/sim/lib/copilot/chat-payload.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ export interface BuildPayloadParams {
2020
fileAttachments?: Array<{ id: string; key: string; size: number; [key: string]: unknown }>
2121
commands?: string[]
2222
chatId?: string
23+
conversationId?: string
24+
prefetch?: boolean
2325
implicitFeedback?: string
2426
}
2527

@@ -64,6 +66,10 @@ export async function buildCopilotRequestPayload(
6466
fileAttachments,
6567
commands,
6668
chatId,
69+
conversationId,
70+
prefetch,
71+
conversationHistory,
72+
implicitFeedback,
6773
} = params
6874

6975
const selectedModel = options.selectedModel
@@ -154,6 +160,12 @@ export async function buildCopilotRequestPayload(
154160
version: SIM_AGENT_VERSION,
155161
...(contexts && contexts.length > 0 ? { context: contexts } : {}),
156162
...(chatId ? { chatId } : {}),
163+
...(conversationId ? { conversationId } : {}),
164+
...(Array.isArray(conversationHistory) && conversationHistory.length > 0
165+
? { conversationHistory }
166+
: {}),
167+
...(typeof prefetch === 'boolean' ? { prefetch } : {}),
168+
...(implicitFeedback ? { implicitFeedback } : {}),
157169
...(processedFileContents.length > 0 ? { fileAttachments: processedFileContents } : {}),
158170
...(integrationTools.length > 0 ? { integrationTools } : {}),
159171
...(credentials ? { credentials } : {}),

0 commit comments

Comments
 (0)