@@ -42,8 +42,22 @@ param location string
4242 ]
4343 }
4444})
45- @description ('Optional. Location for all AI service resources. This should be one of the supported Azure AI Service locations.' )
46- param azureAiServiceLocation string
45+ @description ('Required. Location for all AI service resources. This should be one of the supported Azure AI Service locations.' )
46+ param aiDeploymentsLocation string
47+
48+ @minLength (1 )
49+ @description ('Optional. Name of the GPT model to deploy:' )
50+ param gptModelName string = 'gpt-4o'
51+
52+ @description ('Optional. Version of the GPT model to deploy. Defaults to 2024-08-06.' )
53+ param gptModelVersion string = '2024-08-06'
54+
55+ @minLength (1 )
56+ @description ('Optional. GPT model deployment type. Defaults to GlobalStandard.' )
57+ param modelDeploymentType string = 'GlobalStandard'
58+
59+ @description ('Optional. AI model deployment token capacity. Defaults to 150 for optimal performance.' )
60+ param gptModelCapacity int = 150
4761
4862@description ('Optional. The tags to apply to all deployed Azure resources.' )
4963param tags resourceInput <'Microsoft.Resources/resourceGroups@2025-04-01' >.tags = {}
@@ -910,12 +924,11 @@ var aiFoundryAiServicesAiProjectResourceName = 'proj-${solutionSuffix}'
910924var aiFoundryAIservicesEnabled = true
911925var aiFoundryAiServicesModelDeployment = {
912926 format : 'OpenAI'
913- name : 'gpt-4o'
914- version : '2024-08-06'
927+ name : gptModelName
928+ version : gptModelVersion
915929 sku : {
916- name : 'GlobalStandard'
917- //Currently the capacity is set to 140 for optimal performance.
918- capacity : 140
930+ name : modelDeploymentType
931+ capacity : gptModelCapacity
919932 }
920933 raiPolicyName : 'Microsoft.Default'
921934}
@@ -925,7 +938,7 @@ module aiFoundryAiServices 'modules/ai-services.bicep' = if (aiFoundryAIservices
925938 name : take ('avm.res.cognitive-services.account.${aiFoundryAiServicesResourceName }' , 64 )
926939 params : {
927940 name : aiFoundryAiServicesResourceName
928- location : azureAiServiceLocation
941+ location : aiDeploymentsLocation
929942 tags : tags
930943 projectName : aiFoundryAiServicesAiProjectResourceName
931944 projectDescription : 'AI Foundry Project'
0 commit comments