File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,7 @@ describe('Copilot Chat API Route', () => {
226226 mode : 'agent' ,
227227 messageId : 'mock-uuid-1234-5678' ,
228228 depth : 0 ,
229+ chatId : 'chat-123' ,
229230 } ) ,
230231 } )
231232 )
@@ -289,6 +290,7 @@ describe('Copilot Chat API Route', () => {
289290 mode : 'agent' ,
290291 messageId : 'mock-uuid-1234-5678' ,
291292 depth : 0 ,
293+ chatId : 'chat-123' ,
292294 } ) ,
293295 } )
294296 )
@@ -341,6 +343,7 @@ describe('Copilot Chat API Route', () => {
341343 mode : 'agent' ,
342344 messageId : 'mock-uuid-1234-5678' ,
343345 depth : 0 ,
346+ chatId : 'chat-123' ,
344347 } ) ,
345348 } )
346349 )
@@ -430,6 +433,7 @@ describe('Copilot Chat API Route', () => {
430433 mode : 'ask' ,
431434 messageId : 'mock-uuid-1234-5678' ,
432435 depth : 0 ,
436+ chatId : 'chat-123' ,
433437 } ) ,
434438 } )
435439 )
Original file line number Diff line number Diff line change @@ -372,13 +372,13 @@ export async function POST(req: NextRequest) {
372372 streamToolCalls : true ,
373373 mode : mode ,
374374 messageId : userMessageIdToUse ,
375- chatId : actualChatId ,
376375 ...( providerConfig ? { provider : providerConfig } : { } ) ,
377376 ...( effectiveConversationId ? { conversationId : effectiveConversationId } : { } ) ,
378377 ...( typeof effectiveDepth === 'number' ? { depth : effectiveDepth } : { } ) ,
379378 ...( typeof effectivePrefetch === 'boolean' ? { prefetch : effectivePrefetch } : { } ) ,
380379 ...( session ?. user ?. name && { userName : session . user . name } ) ,
381380 ...( agentContexts . length > 0 && { context : agentContexts } ) ,
381+ ...( actualChatId ? { chatId : actualChatId } : { } ) ,
382382 }
383383
384384 try {
Original file line number Diff line number Diff line change 1- import { getCostMultiplier , isHosted } from '@/lib/environment'
1+ import { isHosted } from '@/lib/environment'
22import { createLogger } from '@/lib/logs/console/logger'
33import { anthropicProvider } from '@/providers/anthropic'
44import { azureOpenAIProvider } from '@/providers/azure-openai'
You can’t perform that action at this time.
0 commit comments