Skip to content

fix(self-improving-mastra): use gemini-2.5-flash on GCP (broadly available)#652

Merged
raphaeltm merged 1 commit into
mainfrom
sam/self-improving-mastra-gcp-2-5-flash
Jul 21, 2026
Merged

fix(self-improving-mastra): use gemini-2.5-flash on GCP (broadly available)#652
raphaeltm merged 1 commit into
mainfrom
sam/self-improving-mastra-gcp-2-5-flash

Conversation

@defang-sam

@defang-sam defang-sam Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #651.

Why

gemini-3.5-flash (Gemini 3.x) turned out to need human/org setup to deploy: it's served only via Vertex's global endpoint and isn't offered on-demand in many regions (including the sample's europe-west2), and Defang ties VERTEXAI_LOCATION to the deploy region for explicit models. That's too much friction for a sample.

What

Switch GCP back to the GA gemini-2.5-flash — broadly available on-demand across regions (including europe-west2) with no special configuration. This is the model the sample used before (as the chat-default alias), so it's already known-good in the current region.

AWS is unchanged (zai.glm-5 / z.ai GLM 5).

Files: .env.gcp (CHAT_MODEL), plus README model references (dropped the global-endpoint caveat).

🤖 Generated with Claude Code

Samples Checklist

✅ All good!

…lable)

gemini-3.5-flash (Gemini 3.x) is served only via Vertex's global endpoint and is
not offered on-demand in many regions (including the sample's europe-west2), so
using it needs per-org enablement / manual setup — and Defang ties
VERTEXAI_LOCATION to the deploy region for explicit models. Switch GCP back to
the GA gemini-2.5-flash, which is broadly available on-demand across regions
(including europe-west2) with no special configuration. AWS keeps z.ai GLM 5.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@defang-sam
defang-sam Bot temporarily deployed to deploy-changed-samples July 21, 2026 12:02 Inactive
@raphaeltm
raphaeltm merged commit 609a7d2 into main Jul 21, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant