From a001ed4f8fef1160951f2efeb38821af5adf13b1 Mon Sep 17 00:00:00 2001 From: chrischristiansen-glitch Date: Mon, 25 May 2026 21:48:33 +0200 Subject: [PATCH] chore: oppdatert bootstrap.sh med forventet Gemini-oppsett (us-central1 + 2.5-flash/3.5-flash) og ny feilmelding for 2.0-modeller --- scripts/bootstrap.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index e07eb92..d645b8f 100644 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -14,7 +14,8 @@ CLOUD_RUN_URL="https://osvauco-agent-357036551735.us-central1.run.app" echo "" echo "╔══════════════════════════════════════════════════╗" echo "║ OSVauco VM Bootstrap ║" -echo "║ Prosjekt: $PROJECT_ID ║" +echo "║ Prosjekt: $PROJECT_ID ║" + echo "╚══════════════════════════════════════════════════╝" echo "" @@ -66,6 +67,14 @@ gcloud iam service-accounts add-iam-policy-binding "$AGENT_SA" \ echo "" echo "[4/4] Tester Cloud Run-agenten..." + +echo " Forventet konfig:" +echo " GOOGLE_CLOUD_LOCATION=us-central1" +echo " ORCHESTRATOR_MODEL=gemini-2.5-flash" +echo " SUBAGENT_MODEL=gemini-2.5-flash" +echo " REASONING_MODEL=gemini-3.5-flash" + +echo "" TOKEN=$(gcloud auth print-identity-token 2>/dev/null || echo "") if [[ -z "$TOKEN" ]]; then @@ -86,7 +95,7 @@ else cat /tmp/osvauco-test.json echo "" echo " Vanlige årsaker:" - echo " - gemini-2.0-flash: kjør 'gcloud run services update ...' med ORCHESTRATOR_MODEL=gemini-2.0-flash-001" + echo " - Publisher Model '...gemini-2.0-flash(-001)...' not found: 2.0-modellene er utfaset. Kjør 'gcloud run services update ...' med GOOGLE_CLOUD_LOCATION=us-central1 og ORCHESTRATOR_MODEL=gemini-2.5-flash, SUBAGENT_MODEL=gemini-2.5-flash, REASONING_MODEL=gemini-3.5-flash" echo " - 403: ny revisjon ikke deployet ennå — vent 2 min og prøv igjen" fi fi @@ -96,5 +105,6 @@ echo "╔═══════════════════════ echo "║ Bootstrap ferdig! ║" echo "║ Husk: bash infrastructure/03-teardown.sh ║" echo "║ ...hver kveld for å unngå 24/7-fakturering ║" + echo "╚══════════════════════════════════════════════════╝" echo ""