Skip to content

Commit 5c5dfbc

Browse files
updated the recommended list
1 parent e6d0ea1 commit 5c5dfbc

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

scripts/validate_model_quota.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ if ($PrimaryResult) {
110110
Write-Host "`n⚠️ Selected region '$Location' has sufficient quota but is not among the recommended regions (≥ $RECOMMENDED_TOKENS tokens)."
111111
Write-Host "🚨 Your application may not work as expected due to limited quota."
112112
Write-Host "`nℹ️ Recommended regions: $($RecommendedRegions -join ', ')"
113+
Write-Host "👉 It's advisable to deploy in one of these regions for optimal app performance."
113114
$choice = Read-Host "❓ Do you want to choose a recommended region instead? (y/n)"
114115
if ($choice -match "^[Yy]$") {
115116
Show-Table

scripts/validate_model_quota.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,15 @@ ask_for_location() {
218218

219219
# -------------------- Final Decision Logic --------------------
220220
if [[ $primary_status -eq 0 ]]; then
221+
221222
if [[ " ${NOT_RECOMMENDED_REGIONS[*]} " == *" $LOCATION "* ]]; then
222-
echo -e "\n⚠️ Region '$LOCATION' is not recommended (available < $RECOMMENDED_TOKENS)."
223+
recommended_list=$(IFS=, ; echo "${RECOMMENDED_REGIONS[*]}")
224+
bold_regions=$(printf "\033[1m%s\033[0m" "$recommended_list")
225+
echo -e "\n⚠️ \033[1mWarning:\033[0m Region '$LOCATION' has available tokens less than the recommended threshold ($RECOMMENDED_TOKENS)."
226+
echo -e "🚨 Your application may not work as expected due to limited quota."
227+
echo -e "\nℹ️ Recommended regions (≥ $RECOMMENDED_TOKENS tokens available): $bold_regions"
228+
echo -e "👉 It's advisable to deploy in one of these regions for optimal app performance."
229+
223230
echo -n "❓ Proceed anyway? (y/n): "
224231
read -r proceed < /dev/tty
225232
if [[ "$proceed" =~ ^[Yy]$ ]]; then

0 commit comments

Comments
 (0)