diff --git a/apps/sim/app/api/copilot/chat/route.ts b/apps/sim/app/api/copilot/chat/route.ts index a77506a720..25349e9145 100644 --- a/apps/sim/app/api/copilot/chat/route.ts +++ b/apps/sim/app/api/copilot/chat/route.ts @@ -457,9 +457,10 @@ export async function POST(req: NextRequest) { content: message, timestamp: new Date().toISOString(), ...(fileAttachments && fileAttachments.length > 0 && { fileAttachments }), - ...(Array.isArray(normalizedContexts) && normalizedContexts.length > 0 && { - contexts: normalizedContexts, - }), + ...(Array.isArray(normalizedContexts) && + normalizedContexts.length > 0 && { + contexts: normalizedContexts, + }), ...(Array.isArray(normalizedContexts) && normalizedContexts.length > 0 && { contentBlocks: [ diff --git a/apps/sim/lib/copilot/orchestrator/tool-executor/index.ts b/apps/sim/lib/copilot/orchestrator/tool-executor/index.ts index 8e6dab8f81..829a57a62e 100644 --- a/apps/sim/lib/copilot/orchestrator/tool-executor/index.ts +++ b/apps/sim/lib/copilot/orchestrator/tool-executor/index.ts @@ -264,7 +264,9 @@ async function executeManageCustomTool( workspaceId != null ? await db .delete(customTools) - .where(and(eq(customTools.id, params.toolId), eq(customTools.workspaceId, workspaceId))) + .where( + and(eq(customTools.id, params.toolId), eq(customTools.workspaceId, workspaceId)) + ) .returning({ id: customTools.id }) : [] diff --git a/apps/sim/stores/panel/copilot/store.ts b/apps/sim/stores/panel/copilot/store.ts index f767e1a5ba..44f17df101 100644 --- a/apps/sim/stores/panel/copilot/store.ts +++ b/apps/sim/stores/panel/copilot/store.ts @@ -408,7 +408,9 @@ function normalizeSelectedModelKey(selectedModel: string, models: AvailableModel if (matches.length === 0) return selectedModel if (provider) { - const sameProvider = matches.find((m) => m.provider === provider || m.id.startsWith(`${provider}/`)) + const sameProvider = matches.find( + (m) => m.provider === provider || m.id.startsWith(`${provider}/`) + ) if (sameProvider) return sameProvider.id }