Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion infra/bicep/deploy_azure_open_ai.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
6 changes: 3 additions & 3 deletions infra/bicep/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"_generator": {
"name": "bicep",
"version": "0.36.177.2456",
"templateHash": "10073710839554364739"
"templateHash": "5350056575239104697"
}
},
"parameters": {
Expand Down Expand Up @@ -715,7 +715,7 @@
"_generator": {
"name": "bicep",
"version": "0.36.177.2456",
"templateHash": "14752098252088373470"
"templateHash": "670869423023255449"
}
},
"parameters": {
Expand Down Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion infra/scripts/checkquota.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=""
Expand Down
7 changes: 2 additions & 5 deletions infra/scripts/quota_check_params.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down