File tree Expand file tree Collapse file tree 4 files changed +23
-17
lines changed
Expand file tree Collapse file tree 4 files changed +23
-17
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ param keyVaultName string
55param cuLocation string
66param deploymentType string
77param gptModelName string
8+ param gptModelVersion string
89param azureOpenAIApiVersion string
910param gptDeploymentCapacity int
1011param embeddingModel string
@@ -58,6 +59,7 @@ var aiModelDeployments = [
5859 name : deploymentType
5960 capacity : gptDeploymentCapacity
6061 }
62+ version : gptModelVersion
6163 raiPolicyName : 'Microsoft.Default'
6264 }
6365 {
Original file line number Diff line number Diff line change @@ -28,18 +28,12 @@ param secondaryLocation string
2828])
2929param deploymentType string = 'GlobalStandard'
3030
31- @minLength (1 )
3231@description ('Name of the GPT model to deploy:' )
33- @allowed ([
34- 'gpt-4o-mini'
35- 'gpt-4o'
36- 'gpt-4'
37- ])
3832param gptModelName string = 'gpt-4o-mini'
3933
40- // @minLength(1 )
41- // @description('Version of the GPT model to deploy:')
42- // param gptModelVersion string = '2024-02-15-preview' //'2024-08-06'
34+ @ description ( 'Version of the GPT model to deploy:' )
35+ param gptModelVersion string = '2024-02-15-preview'
36+
4337var azureOpenAIApiVersion = '2024-02-15-preview'
4438
4539@minValue (10 )
@@ -102,6 +96,7 @@ module aifoundry 'deploy_ai_foundry.bicep' = {
10296 cuLocation : contentUnderstandingLocation
10397 deploymentType : deploymentType
10498 gptModelName : gptModelName
99+ gptModelVersion : gptModelVersion
105100 azureOpenAIApiVersion : azureOpenAIApiVersion
106101 gptDeploymentCapacity : gptDeploymentCapacity
107102 embeddingModel : embeddingModel
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ param contentUnderstandingLocation = readEnvironmentVariable('AZURE_CONTENT_UNDE
66param secondaryLocation = readEnvironmentVariable ('AZURE_SECONDARY_LOCATION' , 'eastus2' )
77param deploymentType = readEnvironmentVariable ('AZURE_OPEN_AI_MODEL_DEPLOYMENT_TYPE' , 'GlobalStandard' )
88param gptModelName = readEnvironmentVariable ('AZURE_OPEN_AI_DEPLOYMENT_MODEL' , 'gpt-4o-mini' )
9+ param gptModelVersion = readEnvironmentVariable ('AZURE_ENV_MODEL_VERSION' , '2024-05-13' )
910param gptDeploymentCapacity = int (readEnvironmentVariable ('AZURE_OPEN_AI_DEPLOYMENT_MODEL_CAPACITY' , '30' ))
1011param embeddingModel = readEnvironmentVariable ('AZURE_OPENAI_EMBEDDING_MODEL' , 'text-embedding-ada-002' )
1112param embeddingDeploymentCapacity = int (readEnvironmentVariable ('AZURE_OPENAI_EMBEDDING_MODEL_CAPACITY' , '80' ))
Original file line number Diff line number Diff line change 55 "_generator" : {
66 "name" : " bicep" ,
77 "version" : " 0.35.1.17967" ,
8- "templateHash" : " 15074305105133532037 "
8+ "templateHash" : " 11123654867356883175 "
99 }
1010 },
1111 "parameters" : {
5353 "gptModelName" : {
5454 "type" : " string" ,
5555 "defaultValue" : " gpt-4o-mini" ,
56- "allowedValues" : [
57- " gpt-4o-mini" ,
58- " gpt-4o" ,
59- " gpt-4"
60- ],
61- "minLength" : 1 ,
6256 "metadata" : {
6357 "description" : " Name of the GPT model to deploy:"
6458 }
6559 },
60+ "gptModelVersion" : {
61+ "type" : " string" ,
62+ "defaultValue" : " 2024-02-15-preview" ,
63+ "metadata" : {
64+ "description" : " Version of the GPT model to deploy:"
65+ }
66+ },
6667 "gptDeploymentCapacity" : {
6768 "type" : " int" ,
6869 "defaultValue" : 30 ,
589590 "gptModelName" : {
590591 "value" : " [parameters('gptModelName')]"
591592 },
593+ "gptModelVersion" : {
594+ "value" : " [parameters('gptModelVersion')]"
595+ },
592596 "azureOpenAIApiVersion" : {
593597 "value" : " [variables('azureOpenAIApiVersion')]"
594598 },
612616 "_generator" : {
613617 "name" : " bicep" ,
614618 "version" : " 0.35.1.17967" ,
615- "templateHash" : " 5794496619234186044 "
619+ "templateHash" : " 796973952642771216 "
616620 }
617621 },
618622 "parameters" : {
634638 "gptModelName" : {
635639 "type" : " string"
636640 },
641+ "gptModelVersion" : {
642+ "type" : " string"
643+ },
637644 "azureOpenAIApiVersion" : {
638645 "type" : " string"
639646 },
903910 "name" : " [parameters('deploymentType')]" ,
904911 "capacity" : " [parameters('gptDeploymentCapacity')]"
905912 },
913+ "version" : " [parameters('gptModelVersion')]" ,
906914 "raiPolicyName" : " Microsoft.Default"
907915 },
908916 {
You can’t perform that action at this time.
0 commit comments