Skip to content

Commit f109ac4

Browse files
updated default values for gpt model deployment and updated openai api version parameter name
1 parent b015978 commit f109ac4

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

infra/main.bicep

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ param secondaryLocation string
2525
'Standard'
2626
'GlobalStandard'
2727
])
28-
param deploymentType string = 'GlobalStandard'
28+
param deploymentType string = 'Standard'
2929

3030
@minLength(1)
3131
@description('Name of the GPT model to deploy:')
3232
@allowed([
3333
'gpt-4o'
3434
'gpt-4'
3535
])
36-
param gptModelName string = 'gpt-4o'
36+
param gptModelName string = 'gpt-4'
3737

38-
param gptModelVersion string = '2024-05-01-preview'
38+
param azureOpenAIAPIVersion string = '2024-05-01-preview'
3939

4040
@minValue(10)
4141
@description('Capacity of the GPT deployment:')
@@ -62,7 +62,7 @@ var solutionPrefix = 'dg${padLeft(take(uniqueId, 12), 12, '0')}'
6262
var resourceGroupLocation = resourceGroup().location
6363

6464
var solutionLocation = resourceGroupLocation
65-
var baseUrl = 'https://raw.githubusercontent.com/microsoft/Generic-Build-your-own-copilot-Solution-Accelerator/dcgn_template/'
65+
var baseUrl = 'https://raw.githubusercontent.com/microsoft/Generic-Build-your-own-copilot-Solution-Accelerator/dev/'
6666

6767
var ApplicationInsightsName = 'appins-${solutionPrefix}'
6868
var WorkspaceName = 'worksp-${solutionPrefix}'
@@ -97,7 +97,7 @@ module aifoundry 'deploy_ai_foundry.bicep' = {
9797
keyVaultName: kvault.outputs.keyvaultName
9898
deploymentType: deploymentType
9999
gptModelName: gptModelName
100-
gptModelVersion: gptModelVersion
100+
gptModelVersion: azureOpenAIAPIVersion
101101
gptDeploymentCapacity: gptDeploymentCapacity
102102
embeddingModel: embeddingModel
103103
embeddingDeploymentCapacity: embeddingDeploymentCapacity
@@ -377,7 +377,7 @@ module appserviceModule 'deploy_app_service.bicep' = {
377377
AzureOpenAIEndpoint:aifoundry.outputs.aiServicesTarget
378378
AzureOpenAIModel: gptModelName //'gpt-4o-mini'
379379
AzureOpenAIKey:keyVault.getSecret('AZURE-OPENAI-KEY')
380-
azureOpenAIApiVersion: gptModelVersion //'2024-02-15-preview'
380+
azureOpenAIApiVersion: azureOpenAIAPIVersion //'2024-02-15-preview'
381381
AZURE_OPENAI_RESOURCE:aifoundry.outputs.aiServicesName
382382
USE_CHAT_HISTORY_ENABLED:'True'
383383
AZURE_COSMOSDB_ACCOUNT: cosmosDBModule.outputs.cosmosAccountName

infra/main.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.33.93.31351",
8-
"templateHash": "5902602471296768197"
8+
"templateHash": "17507866036733972920"
99
}
1010
},
1111
"parameters": {
@@ -29,7 +29,7 @@
2929
},
3030
"deploymentType": {
3131
"type": "string",
32-
"defaultValue": "GlobalStandard",
32+
"defaultValue": "Standard",
3333
"allowedValues": [
3434
"Standard",
3535
"GlobalStandard"
@@ -41,7 +41,7 @@
4141
},
4242
"gptModelName": {
4343
"type": "string",
44-
"defaultValue": "gpt-4o",
44+
"defaultValue": "gpt-4",
4545
"allowedValues": [
4646
"gpt-4o",
4747
"gpt-4"
@@ -51,7 +51,7 @@
5151
"description": "Name of the GPT model to deploy:"
5252
}
5353
},
54-
"gptModelVersion": {
54+
"azureOpenAIAPIVersion": {
5555
"type": "string",
5656
"defaultValue": "2024-05-01-preview"
5757
},
@@ -92,7 +92,7 @@
9292
"solutionPrefix": "[format('dg{0}', padLeft(take(variables('uniqueId'), 12), 12, '0'))]",
9393
"resourceGroupLocation": "[resourceGroup().location]",
9494
"solutionLocation": "[variables('resourceGroupLocation')]",
95-
"baseUrl": "https://raw.githubusercontent.com/microsoft/Generic-Build-your-own-copilot-Solution-Accelerator/dcgn_template/",
95+
"baseUrl": "https://raw.githubusercontent.com/microsoft/Generic-Build-your-own-copilot-Solution-Accelerator/dev/",
9696
"ApplicationInsightsName": "[format('appins-{0}', variables('solutionPrefix'))]",
9797
"WorkspaceName": "[format('worksp-{0}', variables('solutionPrefix'))]"
9898
},
@@ -363,7 +363,7 @@
363363
"value": "[parameters('gptModelName')]"
364364
},
365365
"gptModelVersion": {
366-
"value": "[parameters('gptModelVersion')]"
366+
"value": "[parameters('azureOpenAIAPIVersion')]"
367367
},
368368
"gptDeploymentCapacity": {
369369
"value": "[parameters('gptDeploymentCapacity')]"
@@ -1185,7 +1185,7 @@
11851185
}
11861186
},
11871187
"azureOpenAIApiVersion": {
1188-
"value": "[parameters('gptModelVersion')]"
1188+
"value": "[parameters('azureOpenAIAPIVersion')]"
11891189
},
11901190
"AZURE_OPENAI_RESOURCE": {
11911191
"value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry'), '2022-09-01').outputs.aiServicesName.value]"

0 commit comments

Comments
 (0)