Skip to content

Commit fb84df0

Browse files
Merge pull request #147 from microsoft/PSL-US-18442
fix: parameterized for model version
2 parents c5c3579 + af56152 commit fb84df0

3 files changed

Lines changed: 2 additions & 21 deletions

File tree

infra/main.bicep

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,10 @@ param contentUnderstandingLocation string
3030
])
3131
param deploymentType string = 'GlobalStandard'
3232

33-
@minLength(1)
3433
@description('Name of the GPT model to deploy:')
35-
@allowed([
36-
'gpt-4o-mini'
37-
'gpt-4o'
38-
'gpt-4'
39-
])
4034
param gptModelName string = 'gpt-4o'
4135

42-
@minLength(1)
4336
@description('Version of the GPT model to deploy:')
44-
@allowed([
45-
'2024-08-06'
46-
])
4737
param gptModelVersion string = '2024-08-06'
4838

4939
//var gptModelVersion = '2024-02-15-preview'

infra/main.bicepparam

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ param environmentName = readEnvironmentVariable('AZURE_ENV_NAME', 'cps')
44
param contentUnderstandingLocation = readEnvironmentVariable('AZURE_ENV_CU_LOCATION', 'WestUS')
55
param deploymentType = readEnvironmentVariable('AZURE_ENV_MODEL_DEPLOYMENT_TYPE', 'GlobalStandard')
66
param gptModelName = readEnvironmentVariable('AZURE_ENV_MODEL_NAME', 'gpt-4o')
7+
param gptModelVersion = readEnvironmentVariable('AZURE_ENV_MODEL_VERSION', '2024-08-06')
78
param gptDeploymentCapacity = int(readEnvironmentVariable('AZURE_ENV_MODEL_CAPACITY', '30'))
89
param useLocalBuild = readEnvironmentVariable('USE_LOCAL_BUILD', 'false')
910
param existingLogAnalyticsWorkspaceId = readEnvironmentVariable('AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID', '')

infra/main.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.35.1.17967",
8-
"templateHash": "12841296004328754819"
8+
"templateHash": "15234454470886032390"
99
}
1010
},
1111
"parameters": {
@@ -54,23 +54,13 @@
5454
"gptModelName": {
5555
"type": "string",
5656
"defaultValue": "gpt-4o",
57-
"allowedValues": [
58-
"gpt-4o-mini",
59-
"gpt-4o",
60-
"gpt-4"
61-
],
62-
"minLength": 1,
6357
"metadata": {
6458
"description": "Name of the GPT model to deploy:"
6559
}
6660
},
6761
"gptModelVersion": {
6862
"type": "string",
6963
"defaultValue": "2024-08-06",
70-
"allowedValues": [
71-
"2024-08-06"
72-
],
73-
"minLength": 1,
7464
"metadata": {
7565
"description": "Version of the GPT model to deploy:"
7666
}

0 commit comments

Comments
 (0)