File tree Expand file tree Collapse file tree 3 files changed +189
-180
lines changed
Expand file tree Collapse file tree 3 files changed +189
-180
lines changed Original file line number Diff line number Diff line change @@ -319,14 +319,14 @@ Return ONLY the JSON array.`,
319319
320320 {
321321 id : 'azureEndpoint' ,
322- title : 'Azure OpenAI Endpoint' ,
322+ title : 'Azure Endpoint' ,
323323 type : 'short-input' ,
324324 password : true ,
325- placeholder : 'https://your-resource.openai .azure.com' ,
325+ placeholder : 'https://your-resource.services.ai .azure.com' ,
326326 connectionDroppable : false ,
327327 condition : {
328328 field : 'model' ,
329- value : providers [ 'azure-openai' ] . models ,
329+ value : [ ... providers [ 'azure-openai' ] . models , ... providers [ 'azure-anthropic' ] . models ] ,
330330 } ,
331331 } ,
332332 {
Original file line number Diff line number Diff line change @@ -480,6 +480,15 @@ async function executeChatCompletionsRequest(
480480 output : accumulatedCost . output + streamCost . output ,
481481 total : accumulatedCost . total + streamCost . total ,
482482 }
483+
484+ const streamEndTime = Date . now ( )
485+ const streamEndTimeISO = new Date ( streamEndTime ) . toISOString ( )
486+
487+ if ( streamingResult . execution . output . providerTiming ) {
488+ streamingResult . execution . output . providerTiming . endTime = streamEndTimeISO
489+ streamingResult . execution . output . providerTiming . duration =
490+ streamEndTime - providerStartTime
491+ }
483492 } ) ,
484493 execution : {
485494 success : true ,
You can’t perform that action at this time.
0 commit comments