Skip to content

Commit 248de84

Browse files
chore: OpenAI models by replacing Standard with GlobalStandard across infrastructure in the Bicep (#1861)
1 parent 3e5a737 commit 248de84

File tree

5 files changed

+7
-11
lines changed

5 files changed

+7
-11
lines changed

docs/prompt_flow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ This is a known issue and can be resolved by initiating a compute session. Once
4545

4646
Follow these steps to update the flow:
4747

48-
1. Navigate to the flow in Azure Machine Learning Studio and make the necessary changes
48+
1. Navigate to the flow in Azure Machine Learning Studio and make the necessary changes.
4949
1. Download the updated flow files to the [../infra/prompt-flow/cwyd/](../infra/prompt-flow/cwyd/) directory by clicking the download button in the Files tab
5050
![Download](images/prompt-flow-download.png)
5151
1. Replace the content of `flow.dag.template.yaml` with your new flow from the `flow.dag.yaml` file

infra/main.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ var defaultOpenAiDeployments = [
434434
version: azureOpenAIEmbeddingModelVersion
435435
}
436436
sku: {
437-
name: 'Standard'
437+
name: 'GlobalStandard'
438438
capacity: azureOpenAIEmbeddingModelCapacity
439439
}
440440
}

infra/main.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.36.177.2456",
8-
"templateHash": "849970351177560479"
8+
"templateHash": "5740998106011376838"
99
}
1010
},
1111
"parameters": {
@@ -928,7 +928,7 @@
928928
"version": "[parameters('azureOpenAIEmbeddingModelVersion')]"
929929
},
930930
"sku": {
931-
"name": "Standard",
931+
"name": "GlobalStandard",
932932
"capacity": "[parameters('azureOpenAIEmbeddingModelCapacity')]"
933933
}
934934
}

scripts/checkquota.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ echo "✅ Azure subscription set successfully."
3333
# Define models and their minimum required capacities
3434
declare -A MIN_CAPACITY=(
3535
["OpenAI.GlobalStandard.gpt4.1"]=$GPT_MIN_CAPACITY
36-
["OpenAI.Standard.text-embedding-ada-002"]=$TEXT_EMBEDDING_MIN_CAPACITY
36+
["OpenAI.GlobalStandard.text-embedding-ada-002"]=$TEXT_EMBEDDING_MIN_CAPACITY
3737
)
3838

3939
VALID_REGION=""

scripts/quota_check_params.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,8 @@ for REGION in "${REGIONS[@]}"; do
165165
FOUND=false
166166
INSUFFICIENT_QUOTA=false
167167

168-
if [ "$MODEL_NAME" = "text-embedding-ada-002" ]; then
169-
MODEL_TYPES=("openai.standard.$MODEL_NAME")
170-
else
171-
MODEL_TYPES=("openai.standard.$MODEL_NAME" "openai.globalstandard.$MODEL_NAME")
172-
fi
173-
168+
MODEL_TYPES=("openai.standard.$MODEL_NAME" "openai.globalstandard.$MODEL_NAME")
169+
174170
for MODEL_TYPE in "${MODEL_TYPES[@]}"; do
175171
FOUND=false
176172
INSUFFICIENT_QUOTA=false

0 commit comments

Comments
 (0)