fix(executor): handle "global" location in AI platform URL generation

This commit is contained in:
Luis Pater
2026-02-03 01:39:57 +08:00
parent 157f16d3b2
commit 250f212fa3

View File

@@ -1003,6 +1003,8 @@ func vertexBaseURL(location string) string {
loc := strings.TrimSpace(location)
if loc == "" {
loc = "us-central1"
} else if loc == "global" {
return "https://aiplatform.googleapis.com"
}
return fmt.Sprintf("https://%s-aiplatform.googleapis.com", loc)
}