@@ -7,7 +7,7 @@ param environmentName string
7
7
8
8
@minLength (1 )
9
9
@description ('Primary location for all resources' )
10
- @allowed (['australiaeast' , 'eastasia' , 'eastus' , 'northeurope' , 'southcentralus' , 'southeastasia' , 'uksouth' , 'westus2' ])
10
+ @allowed (['australiaeast' , 'eastasia' , 'eastus' , 'eastus2' , ' northeurope' , 'southcentralus' , 'southeastasia' , 'uksouth' , 'westus2' ])
11
11
@metadata ({
12
12
azd : {
13
13
type : 'location'
@@ -33,6 +33,7 @@ param openAiServiceName string = ''
33
33
param openAiSkuName string
34
34
@allowed ([ 'azure' , 'openai' , 'azure_custom' ])
35
35
param openAiHost string // Set in main.parameters.json
36
+ param openAiApiVersion string = '2023-05-15'
36
37
37
38
param chatGptModelName string = ''
38
39
param chatGptDeploymentName string = ''
@@ -42,7 +43,7 @@ param chatGptDeploymentCapacity int = 0
42
43
var chatGpt = {
43
44
modelName : !empty (chatGptModelName ) ? chatGptModelName : startsWith (openAiHost , 'azure' ) ? 'gpt-35-turbo' : 'gpt-3.5-turbo'
44
45
deploymentName : !empty (chatGptDeploymentName ) ? chatGptDeploymentName : 'chat'
45
- deploymentVersion : !empty (chatGptDeploymentVersion ) ? chatGptDeploymentVersion : '0613 '
46
+ deploymentVersion : !empty (chatGptDeploymentVersion ) ? chatGptDeploymentVersion : '0125 '
46
47
deploymentCapacity : chatGptDeploymentCapacity != 0 ? chatGptDeploymentCapacity : 40
47
48
}
48
49
@@ -104,7 +105,7 @@ module api './app/api.bicep' = {
104
105
identityId : apiUserAssignedIdentity .outputs .identityId
105
106
identityClientId : apiUserAssignedIdentity .outputs .identityClientId
106
107
appSettings : {
107
- OPENAI_API_VERSION : chatGpt . deploymentName
108
+ OPENAI_API_VERSION : openAiApiVersion
108
109
AZURE_OPENAI_CHATGPT_MODEL : chatGpt .modelName
109
110
}
110
111
virtualNetworkSubnetId : skipVnet ? '' : serviceVirtualNetwork .outputs .appSubnetID
0 commit comments