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
@@ -60,6 +61,7 @@ var aiModelDeployments = [
6061 name : deploymentType
6162 capacity : gptDeploymentCapacity
6263 }
64+ version : gptModelVersion
6365 raiPolicyName : 'Microsoft.Default'
6466 }
6567 {
Original file line number Diff line number Diff line change @@ -31,18 +31,12 @@ param secondaryLocation string
3131])
3232param deploymentType string = 'GlobalStandard'
3333
34- @minLength (1 )
3534@description ('Name of the GPT model to deploy:' )
36- @allowed ([
37- 'gpt-4o-mini'
38- 'gpt-4o'
39- 'gpt-4'
40- ])
4135param gptModelName string = 'gpt-4o-mini'
4236
43- // @minLength(1 )
44- // @description('Version of the GPT model to deploy:')
45- // param gptModelVersion string = '2024-02-15-preview' //'2024-08-06'
37+ @ description ( 'Version of the GPT model to deploy:' )
38+ param gptModelVersion string = '2024-07-18'
39+
4640var azureOpenAIApiVersion = '2024-02-15-preview'
4741
4842@minValue (10 )
@@ -105,6 +99,7 @@ module aifoundry 'deploy_ai_foundry.bicep' = {
10599 cuLocation : contentUnderstandingLocation
106100 deploymentType : deploymentType
107101 gptModelName : gptModelName
102+ gptModelVersion : gptModelVersion
108103 azureOpenAIApiVersion : azureOpenAIApiVersion
109104 gptDeploymentCapacity : gptDeploymentCapacity
110105 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-07-18' )
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" : " 17280998536631599018 "
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-07-18" ,
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