Skip to content

Commit e32ea9b

Browse files
authored
Merge branch 'Azure-Samples:main' into main
2 parents be5bb30 + f5a7095 commit e32ea9b

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

infra/core/ai/cognitiveservices.bicep

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ param sku object = {
1010
name: 'S0'
1111
}
1212

13-
resource account 'Microsoft.CognitiveServices/accounts@2022-10-01' = {
13+
resource account 'Microsoft.CognitiveServices/accounts@2023-05-01' = {
1414
name: name
1515
location: location
1616
tags: tags
@@ -23,13 +23,16 @@ resource account 'Microsoft.CognitiveServices/accounts@2022-10-01' = {
2323
}
2424

2525
@batchSize(1)
26-
resource deployment 'Microsoft.CognitiveServices/accounts/deployments@2022-10-01' = [for deployment in deployments: {
26+
resource deployment 'Microsoft.CognitiveServices/accounts/deployments@2023-05-01' = [for deployment in deployments: {
2727
parent: account
2828
name: deployment.name
2929
properties: {
3030
model: deployment.model
3131
raiPolicyName: contains(deployment, 'raiPolicyName') ? deployment.raiPolicyName : null
32-
scaleSettings: deployment.scaleSettings
32+
}
33+
sku: {
34+
name: 'Standard'
35+
capacity: deployment.capacity
3336
}
3437
}]
3538

infra/main.bicep

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ param formRecognizerResourceGroupLocation string = location
3838
param formRecognizerSkuName string = 'S0'
3939

4040
param gptDeploymentName string = 'davinci'
41+
param gptDeploymentCapacity int = 30
4142
param gptModelName string = 'text-davinci-003'
4243
param chatGptDeploymentName string = 'chat'
44+
param chatGptDeploymentCapacity int = 30
4345
param chatGptModelName string = 'gpt-35-turbo'
4446

4547
@description('Id of the user or app to assign application roles')
@@ -131,9 +133,7 @@ module openAi 'core/ai/cognitiveservices.bicep' = {
131133
name: gptModelName
132134
version: '1'
133135
}
134-
scaleSettings: {
135-
scaleType: 'Standard'
136-
}
136+
capacity: gptDeploymentCapacity
137137
}
138138
{
139139
name: chatGptDeploymentName
@@ -142,9 +142,7 @@ module openAi 'core/ai/cognitiveservices.bicep' = {
142142
name: chatGptModelName
143143
version: '0301'
144144
}
145-
scaleSettings: {
146-
scaleType: 'Standard'
147-
}
145+
capacity: chatGptDeploymentCapacity
148146
}
149147
]
150148
}

0 commit comments

Comments
 (0)