File tree 2 files changed +18
-7
lines changed
2 files changed +18
-7
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 : contains (deployment , 'sku' ) ? deployment .sku : {
34
+ name : 'Standard'
35
+ capacity : 20
33
36
}
34
37
}]
35
38
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ param applicationInsightsDashboardName string = ''
15
15
@description ('Name of the Azure Application Insights resource' )
16
16
param applicationInsightsName string = ''
17
17
18
+ @description ('Capacity of the chat GPT deployment. Default: 30' )
19
+ param chatGptDeploymentCapacity int = 30
20
+
18
21
@description ('Name of the chat GPT deployment' )
19
22
param chatGptDeploymentName string = 'chat'
20
23
@@ -42,6 +45,9 @@ param formRecognizerServiceName string = ''
42
45
@description ('SKU name for the Form Recognizer service. Default: S0' )
43
46
param formRecognizerSkuName string = 'S0'
44
47
48
+ @description ('Capacity of the GPT deployment. Default: 30' )
49
+ param gptDeploymentCapacity int = 30
50
+
45
51
@description ('Name of the GPT deployment. Default: davinci' )
46
52
param gptDeploymentName string = 'davinci'
47
53
@@ -292,8 +298,9 @@ module openAi 'core/ai/cognitiveservices.bicep' = {
292
298
name : gptModelName
293
299
version : '1'
294
300
}
295
- scaleSettings : {
296
- scaleType : 'Standard'
301
+ sku : {
302
+ name : 'Standard'
303
+ capacity : gptDeploymentCapacity
297
304
}
298
305
}
299
306
{
@@ -303,8 +310,9 @@ module openAi 'core/ai/cognitiveservices.bicep' = {
303
310
name : chatGptModelName
304
311
version : '0301'
305
312
}
306
- scaleSettings : {
307
- scaleType : 'Standard'
313
+ sku : {
314
+ name : 'Standard'
315
+ capacity : chatGptDeploymentCapacity
308
316
}
309
317
}
310
318
]
You can’t perform that action at this time.
0 commit comments