Skip to content

Commit 3ef9c5b

Browse files
committed
ack comments
1 parent 8ab68d9 commit 3ef9c5b

File tree

3 files changed

+189
-180
lines changed

3 files changed

+189
-180
lines changed

apps/sim/blocks/blocks/agent.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
{

apps/sim/providers/azure-openai/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)