File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ param sku object = {
10
10
name : 'S0'
11
11
}
12
12
13
- resource account 'Microsoft.CognitiveServices/accounts@2022-10 -01' = {
13
+ resource account 'Microsoft.CognitiveServices/accounts@2023-05 -01' = {
14
14
name : name
15
15
location : location
16
16
tags : tags
@@ -23,13 +23,16 @@ resource account 'Microsoft.CognitiveServices/accounts@2022-10-01' = {
23
23
}
24
24
25
25
@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 : {
27
27
parent : account
28
28
name : deployment .name
29
29
properties : {
30
30
model : deployment .model
31
31
raiPolicyName : contains (deployment , 'raiPolicyName' ) ? deployment .raiPolicyName : null
32
- scaleSettings : deployment .scaleSettings
32
+ }
33
+ sku : {
34
+ name : 'Standard'
35
+ capacity : deployment .capacity
33
36
}
34
37
}]
35
38
Original file line number Diff line number Diff line change @@ -38,8 +38,10 @@ param formRecognizerResourceGroupLocation string = location
38
38
param formRecognizerSkuName string = 'S0'
39
39
40
40
param gptDeploymentName string = 'davinci'
41
+ param gptDeploymentCapacity int = 30
41
42
param gptModelName string = 'text-davinci-003'
42
43
param chatGptDeploymentName string = 'chat'
44
+ param chatGptDeploymentCapacity int = 30
43
45
param chatGptModelName string = 'gpt-35-turbo'
44
46
45
47
@description ('Id of the user or app to assign application roles' )
@@ -131,9 +133,7 @@ module openAi 'core/ai/cognitiveservices.bicep' = {
131
133
name : gptModelName
132
134
version : '1'
133
135
}
134
- scaleSettings : {
135
- scaleType : 'Standard'
136
- }
136
+ capacity : gptDeploymentCapacity
137
137
}
138
138
{
139
139
name : chatGptDeploymentName
@@ -142,9 +142,7 @@ module openAi 'core/ai/cognitiveservices.bicep' = {
142
142
name : chatGptModelName
143
143
version : '0301'
144
144
}
145
- scaleSettings : {
146
- scaleType : 'Standard'
147
- }
145
+ capacity : chatGptDeploymentCapacity
148
146
}
149
147
]
150
148
}
You can’t perform that action at this time.
0 commit comments