Skip to content

Commit d5dacca

Browse files
updated one condition
1 parent b420194 commit d5dacca

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

scripts/validate_model_quota.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,13 @@ fi
194194
# ---------- Start Process ----------
195195
echo -e "\n🔍 Checking quota in the requested region '$LOCATION'..."
196196
if check_quota "$LOCATION"; then
197+
if (( CAPACITY < RECOMMENDED_TOKENS )); then
198+
print_recommended_warning "$CAPACITY"
199+
prompt_yes_no "❓ Proceed anyway? (y/n): " || {
200+
ask_for_location
201+
exit 0
202+
}
203+
fi
197204
update_env_and_parameters "$LOCATION" "$CAPACITY"
198205
echo "✅ Proceeding with deployment in '$LOCATION'."
199206
exit 0

0 commit comments

Comments
 (0)