vertex: Gemini 4 Carbon and Hydrogen in the preset, and Gemini 4 at us and eu (#6452)
Google Vertex AI's model list lacked gemini-4-carbon (released 2026-11-10)
and gemini-4-hydrogen (2026-11-12); SunsetBirdW and T_t__biu on X, #6452.
Google's model-versions page lists both ids, and each model's page lists
PayGo at global, us and eu, as Argon's now does too, so the us/eu list
gains all three Gemini 4 models.
Their window, output, prices and thinking levels come from models.dev's
google-vertex entry as for every Vertex model, which matches Google's own
pages today: Hydrogen 1,048,576 in / 65,536 out, $1.50 / $0.075 cached /
$7.50 at global, levels low to xhigh; Carbon 1M / 65,536, $2 / $0.10 / $10,
levels low to high. The provider test asks both at thinkingLevel low.
Run (mote): go test -tags nogui ./internal/provider ./internal/gateway
./internal/catalog -run 'Vertex|GeminiEffort|Preset|Effort'; go vet ./...,
GOOS=linux go vet -tags nogui ./..., GOOS=windows go vet ./...; gofmt -l.
Broken by hand: presets.go reverted, TestVertexProviderListed red (no
gemini-4-carbon/hydrogen at global); vertex.go's us/eu list reverted, red
at us and eu.
Not tried: a real Vertex project (no Google credentials here). Carbon and
Argon go to $4 / $0.20 / $20 on 2026-12-01 (Google's pricing page); the
price comes from models.dev and follows it when it changes. The bundled
offline catalog (2026-11-10) has neither model until it is refreshed.
Rerun after rebasing onto origin/main 96558cfde: go test of provider,
gateway and catalog -run Vertex|GeminiEffort|Preset|Effort, ok on mote.
This commit is contained in:
+5
-3
@@ -1263,12 +1263,14 @@ credentials are read when a request is signed.
|
||||
|
||||
Each location serves models of its own, and Vertex AI has no list to ask which,
|
||||
so magpie gives each location the models it answered with on 2026-10-06
|
||||
(and `gemini-4-argon`, at `global` since 2026-10-13):
|
||||
(and Gemini 4: `gemini-4-argon` since 2026-10-13, `gemini-4-carbon` since
|
||||
2026-11-10 and `gemini-4-hydrogen` since 2026-11-12, at `global`, `us` and
|
||||
`eu`):
|
||||
|
||||
| Location | Models |
|
||||
| --- | --- |
|
||||
| `global` | `gemini-3.8-flash`, `gemini-3.7-flash`, `gemini-3.6-flash`, `gemini-3.5-flash`, `gemini-3.5-flash-lite`, `gemini-4-argon`, `gemini-3.1-pro-preview`, `gemini-3.1-pro-preview-customtools`, `gemini-3.1-flash-lite`, `gemini-3-flash-preview`, `gemini-2.5-pro`, `gemini-2.5-flash`, `gemini-2.5-flash-lite`, `deepseek-ai/deepseek-v4.1-flash-maas`, `zai-org/glm-5.2-maas`, `openai/gpt-oss-120b-maas`, `claude-opus-5-5`, `claude-sonnet-5-5`, `claude-haiku-5-5`, `claude-fable-5-2`, `claude-fable-5-1` |
|
||||
| `us`, `eu` | `gemini-3.8-flash`, `gemini-3.7-flash`, `gemini-3.6-flash`, `gemini-3.5-flash`, `gemini-3.5-flash-lite`, `gemini-3.1-flash-lite` |
|
||||
| `global` | `gemini-3.8-flash`, `gemini-3.7-flash`, `gemini-3.6-flash`, `gemini-3.5-flash`, `gemini-3.5-flash-lite`, `gemini-4-carbon`, `gemini-4-hydrogen`, `gemini-4-argon`, `gemini-3.1-pro-preview`, `gemini-3.1-pro-preview-customtools`, `gemini-3.1-flash-lite`, `gemini-3-flash-preview`, `gemini-2.5-pro`, `gemini-2.5-flash`, `gemini-2.5-flash-lite`, `deepseek-ai/deepseek-v4.1-flash-maas`, `zai-org/glm-5.2-maas`, `openai/gpt-oss-120b-maas`, `claude-opus-5-5`, `claude-sonnet-5-5`, `claude-haiku-5-5`, `claude-fable-5-2`, `claude-fable-5-1` |
|
||||
| `us`, `eu` | `gemini-3.8-flash`, `gemini-3.7-flash`, `gemini-3.6-flash`, `gemini-3.5-flash`, `gemini-3.5-flash-lite`, `gemini-4-carbon`, `gemini-4-hydrogen`, `gemini-4-argon`, `gemini-3.1-flash-lite` |
|
||||
| A region | `gemini-2.5-pro`, `gemini-2.5-flash`, `gemini-2.5-flash-lite` |
|
||||
|
||||
A region that serves one more, as asia-northeast1 serves `gemini-3.5-flash`,
|
||||
|
||||
@@ -197,7 +197,7 @@ var presets = []PresetDef{
|
||||
Website: "https://docs.cloud.google.com/gemini-enterprise-agent-platform/models",
|
||||
NoList: true,
|
||||
Models: []string{"gemini-3.8-flash", "gemini-3.7-flash", "gemini-3.6-flash", "gemini-3.5-flash", "gemini-3.5-flash-lite",
|
||||
"gemini-4-argon", "gemini-3.1-pro-preview", "gemini-3.1-pro-preview-customtools", "gemini-3.1-flash-lite", "gemini-3-flash-preview",
|
||||
"gemini-4-carbon", "gemini-4-hydrogen", "gemini-4-argon", "gemini-3.1-pro-preview", "gemini-3.1-pro-preview-customtools", "gemini-3.1-flash-lite", "gemini-3-flash-preview",
|
||||
"gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite",
|
||||
"deepseek-ai/deepseek-v4.1-flash-maas", "zai-org/glm-5.2-maas", "openai/gpt-oss-120b-maas",
|
||||
"claude-opus-5-5", "claude-sonnet-5-5", "claude-haiku-5-5", "claude-fable-5-2", "claude-fable-5-1"},
|
||||
|
||||
@@ -362,16 +362,19 @@ func vertexGeneration(model string) int {
|
||||
|
||||
// vertexModels are the models a location serves, as each answered
|
||||
// on 2026-10-06: every one at global (and Gemini 4 Argon, there since
|
||||
// 2026-10-13, #2155, and the partner models Google serves at global
|
||||
// alone, VertexPartner); Gemini 3's Flash models at us and
|
||||
// eu, which serve no Pro, preview or 2.5; Gemini 2.5 at a region, where a
|
||||
// few add one more (asia-northeast1's gemini-3.5-flash), typed in by hand.
|
||||
// 2026-10-13, #2155, Carbon since 11-10 and Hydrogen since 11-12, #6452,
|
||||
// and the partner models Google serves at global alone, VertexPartner);
|
||||
// Gemini 3's Flash models at us and eu, which serve no Pro, preview or
|
||||
// 2.5, and Gemini 4, which Google's model pages give PayGo at global, us
|
||||
// and eu; Gemini 2.5 at a region, where a few add one more
|
||||
// (asia-northeast1's gemini-3.5-flash), typed in by hand.
|
||||
func vertexModels(loc string) []string {
|
||||
switch cmp.Or(loc, "global") {
|
||||
case "global":
|
||||
return Preset(VertexPreset).Models
|
||||
case "us", "eu":
|
||||
return []string{"gemini-3.8-flash", "gemini-3.7-flash", "gemini-3.6-flash", "gemini-3.5-flash", "gemini-3.5-flash-lite", "gemini-3.1-flash-lite"}
|
||||
return []string{"gemini-3.8-flash", "gemini-3.7-flash", "gemini-3.6-flash", "gemini-3.5-flash", "gemini-3.5-flash-lite",
|
||||
"gemini-4-carbon", "gemini-4-hydrogen", "gemini-4-argon", "gemini-3.1-flash-lite"}
|
||||
}
|
||||
return []string{"gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite"}
|
||||
}
|
||||
|
||||
@@ -526,13 +526,22 @@ func TestVertexProviderListed(t *testing.T) {
|
||||
case "global":
|
||||
wrong = func(m string) bool { return !slices.Contains(global, m) }
|
||||
case "us", "eu":
|
||||
// Gemini 3's Flash models, of those global serves
|
||||
// Gemini 3's Flash models and Gemini 4, of those global serves
|
||||
wrong = func(m string) bool {
|
||||
return !strings.HasPrefix(m, "gemini-3") || !strings.Contains(m, "-flash") || strings.Contains(m, "preview") || !slices.Contains(global, m)
|
||||
gen4 := strings.HasPrefix(m, "gemini-4-")
|
||||
return !gen4 && (!strings.HasPrefix(m, "gemini-3") || !strings.Contains(m, "-flash") || strings.Contains(m, "preview")) || !slices.Contains(global, m)
|
||||
}
|
||||
default:
|
||||
wrong = func(m string) bool { return !strings.HasPrefix(m, "gemini-2.5-") }
|
||||
}
|
||||
if loc == "global" || loc == "us" || loc == "eu" {
|
||||
// Gemini 4 is served at each of the three (#6452)
|
||||
for _, m := range []string{"gemini-4-carbon", "gemini-4-hydrogen", "gemini-4-argon"} {
|
||||
if !slices.Contains(got, m) {
|
||||
t.Errorf("at %s: no %s in %v", loc, m, got)
|
||||
}
|
||||
}
|
||||
}
|
||||
if len(got) == 0 || slices.ContainsFunc(got, wrong) || loc == "global" && len(got) != len(global) {
|
||||
t.Errorf("at %s: %v", loc, got)
|
||||
}
|
||||
@@ -1408,6 +1417,8 @@ func TestVertexTestRequest(t *testing.T) {
|
||||
"gemini-3.5-flash": low,
|
||||
"gemini-3.1-pro-preview": low,
|
||||
"gemini-4-argon": low,
|
||||
"gemini-4-carbon": low,
|
||||
"gemini-4-hydrogen": low,
|
||||
"gemini-3-flash-preview": low,
|
||||
"gemini-2.5-pro": budget(128),
|
||||
"Gemini-2.5-Pro": budget(128),
|
||||
|
||||
Reference in New Issue
Block a user