From a146ff047c574a3c129c729c0a68a943e3b1bd30 Mon Sep 17 00:00:00 2001 From: Priyanka-Microsoft Date: Fri, 18 Jul 2025 16:34:54 +0530 Subject: [PATCH] migrate model type to global standard --- infra/bicep/deploy_azure_open_ai.bicep | 2 +- infra/bicep/main.json | 6 +++--- infra/scripts/checkquota.sh | 2 +- infra/scripts/quota_check_params.sh | 7 ++----- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/infra/bicep/deploy_azure_open_ai.bicep b/infra/bicep/deploy_azure_open_ai.bicep index e48dd7f64..08b80de0f 100644 --- a/infra/bicep/deploy_azure_open_ai.bicep +++ b/infra/bicep/deploy_azure_open_ai.bicep @@ -47,7 +47,7 @@ resource accounts_byc_openai_name_text_embedding_ada_002 'Microsoft.CognitiveSer parent: accounts_byc_openai_name_resource name: 'text-embedding-ada-002' sku: { - name: 'Standard' + name: 'GlobalStandard' capacity: 45 } properties: { diff --git a/infra/bicep/main.json b/infra/bicep/main.json index a2b3f9740..e4911f233 100644 --- a/infra/bicep/main.json +++ b/infra/bicep/main.json @@ -5,7 +5,7 @@ "_generator": { "name": "bicep", "version": "0.36.177.2456", - "templateHash": "10073710839554364739" + "templateHash": "5350056575239104697" } }, "parameters": { @@ -715,7 +715,7 @@ "_generator": { "name": "bicep", "version": "0.36.177.2456", - "templateHash": "14752098252088373470" + "templateHash": "670869423023255449" } }, "parameters": { @@ -780,7 +780,7 @@ "apiVersion": "2023-05-01", "name": "[format('{0}/{1}', parameters('accounts_byc_openai_name'), 'text-embedding-ada-002')]", "sku": { - "name": "Standard", + "name": "GlobalStandard", "capacity": 45 }, "properties": { diff --git a/infra/scripts/checkquota.sh b/infra/scripts/checkquota.sh index 975da6795..ec6812f40 100644 --- a/infra/scripts/checkquota.sh +++ b/infra/scripts/checkquota.sh @@ -33,7 +33,7 @@ echo "✅ Azure subscription set successfully." # Define models and their minimum required capacities declare -A MIN_CAPACITY=( ["OpenAI.Standard.gpt-35-turbo"]=$GPT_MIN_CAPACITY - ["OpenAI.Standard.text-embedding-ada-002"]=$TEXT_EMBEDDING_MIN_CAPACITY + ["OpenAI.GlobalStandard.text-embedding-ada-002"]=$TEXT_EMBEDDING_MIN_CAPACITY ) VALID_REGION="" diff --git a/infra/scripts/quota_check_params.sh b/infra/scripts/quota_check_params.sh index f1b192974..2bee6e8a0 100644 --- a/infra/scripts/quota_check_params.sh +++ b/infra/scripts/quota_check_params.sh @@ -165,11 +165,8 @@ for REGION in "${REGIONS[@]}"; do FOUND=false INSUFFICIENT_QUOTA=false - if [ "$MODEL_NAME" = "text-embedding-ada-002" ]; then - MODEL_TYPES=("openai.standard.$MODEL_NAME") - else - MODEL_TYPES=("openai.standard.$MODEL_NAME" "openai.globalstandard.$MODEL_NAME") - fi + + MODEL_TYPES=("openai.standard.$MODEL_NAME" "openai.globalstandard.$MODEL_NAME") for MODEL_TYPE in "${MODEL_TYPES[@]}"; do FOUND=false