Skip to content

Commit 7298f82

Browse files
authored
Update main.bicep
1 parent 10c5a2a commit 7298f82

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

infra/main.bicep

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,16 @@ param computerVisionSkuName string // Set in main.parameters.json
109109
param chatGptModelName string = ''
110110
param chatGptDeploymentName string = ''
111111
param chatGptDeploymentVersion string = ''
112+
param chatGptDeploymentSkuName string = ''
112113
param chatGptDeploymentCapacity int = 0
114+
113115
var chatGpt = {
114116
modelName: !empty(chatGptModelName)
115117
? chatGptModelName
116118
: startsWith(openAiHost, 'azure') ? 'gpt-35-turbo' : 'gpt-3.5-turbo'
117119
deploymentName: !empty(chatGptDeploymentName) ? chatGptDeploymentName : 'chat'
118120
deploymentVersion: !empty(chatGptDeploymentVersion) ? chatGptDeploymentVersion : '0613'
121+
deploymentSkuName: !empty(chatGptDeploymentSkuName) ? chatGptDeploymentSkuName : 'Standard'
119122
deploymentCapacity: chatGptDeploymentCapacity != 0 ? chatGptDeploymentCapacity : 30
120123
}
121124

@@ -450,7 +453,7 @@ var defaultOpenAiDeployments = [
450453
version: chatGpt.deploymentVersion
451454
}
452455
sku: {
453-
name: 'Standard'
456+
name: chatGpt.deploymentSkuName
454457
capacity: chatGpt.deploymentCapacity
455458
}
456459
}

0 commit comments

Comments
 (0)