From 743e037e6ac4b9a04eb15b4aecb95f697e181e10 Mon Sep 17 00:00:00 2001 From: "Priyanka Singhal (Persistent Systems Inc)" Date: Tue, 1 Apr 2025 19:55:42 +0530 Subject: [PATCH 1/3] corrected the table --- scripts/quota_check_params.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/quota_check_params.sh b/scripts/quota_check_params.sh index 24ba3292..48129e92 100644 --- a/scripts/quota_check_params.sh +++ b/scripts/quota_check_params.sh @@ -153,7 +153,7 @@ for REGION in "${REGIONS[@]}"; do TEXT_EMBEDDING_AVAILABLE=true fi AT_LEAST_ONE_MODEL_AVAILABLE=true - TEMP_TABLE_ROWS+=("$(printf "| %-4s | %-20s | %-60s | %-10s | %-10s | %-10s |" "$INDEX" "$REGION" "$MODEL_TYPE" "$LIMIT" "$CURRENT_VALUE" "$AVAILABLE")") + TEMP_TABLE_ROWS+=("$(printf "| %-4s | %-20s | %-45s | %-10s | %-10s | %-10s |" "$INDEX" "$REGION" "$MODEL_TYPE" "$LIMIT" "$CURRENT_VALUE" "$AVAILABLE")") else INSUFFICIENT_QUOTA=true fi @@ -183,7 +183,7 @@ if [ ${#TABLE_ROWS[@]} -eq 0 ]; then echo "❌ No regions have sufficient quota for all required models. Please request a quota increase: https://aka.ms/oai/stuquotarequest" else echo "----------------------------------------------------------------------------------------------------------" - printf "| %-4s | %-20s | %-60s | %-10s | %-10s | %-10s |\n" "No." "Region" "Model Name" "Limit" "Used" "Available" + printf "| %-4s | %-20s | %-45s | %-10s | %-10s | %-10s |\n" "No." "Region" "Model Name" "Limit" "Used" "Available" echo "----------------------------------------------------------------------------------------------------------" for ROW in "${TABLE_ROWS[@]}"; do echo "$ROW" From 8aa2ca3f0c5b45e6f6b8fd2c3be19eca3b1356fd Mon Sep 17 00:00:00 2001 From: "Priyanka Singhal (Persistent Systems Inc)" Date: Tue, 1 Apr 2025 20:49:19 +0530 Subject: [PATCH 2/3] updated dev container --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index c868df53..8cbf2c51 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -16,7 +16,7 @@ ] } }, - "postStartCommand": "git pull origin main && python3 -m pip install -r infra/scripts/index_scripts/requirements.txt", + "postStartCommand": "git pull origin main && python3 -m pip install -r infra/scripts/index_scripts/requirements.txt && curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash", "remoteUser": "vscode", "hostRequirements": { "memory": "4gb" From 90a16df92409ff9266320c8faceb27b451c87d72 Mon Sep 17 00:00:00 2001 From: "Priyanka Singhal (Persistent Systems Inc)" Date: Tue, 1 Apr 2025 20:53:53 +0530 Subject: [PATCH 3/3] updated table --- scripts/quota_check_params.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/quota_check_params.sh b/scripts/quota_check_params.sh index 48129e92..a595384e 100644 --- a/scripts/quota_check_params.sh +++ b/scripts/quota_check_params.sh @@ -178,17 +178,17 @@ if { [ "$IS_USER_PROVIDED_PAIRS" = true ] && [ "$INSUFFICIENT_QUOTA" = false ] & done if [ ${#TABLE_ROWS[@]} -eq 0 ]; then - echo "----------------------------------------------------------------------------------------------------------" + echo "------------------------------------------------------------------------------------------------------------------" echo "❌ No regions have sufficient quota for all required models. Please request a quota increase: https://aka.ms/oai/stuquotarequest" else - echo "----------------------------------------------------------------------------------------------------------" + echo "----------------------------------------------------------------------------------------------------------------------" printf "| %-4s | %-20s | %-45s | %-10s | %-10s | %-10s |\n" "No." "Region" "Model Name" "Limit" "Used" "Available" - echo "----------------------------------------------------------------------------------------------------------" + echo "----------------------------------------------------------------------------------------------------------------------" for ROW in "${TABLE_ROWS[@]}"; do echo "$ROW" done - echo "----------------------------------------------------------------------------------------------------------" + echo "----------------------------------------------------------------------------------------------------------------------" echo "➡️ To request a quota increase, visit: https://aka.ms/oai/stuquotarequest" fi