Compare commits

...

1 Commits

Author SHA1 Message Date
Luis Pater
250f212fa3 fix(executor): handle "global" location in AI platform URL generation 2026-02-03 01:39:57 +08:00

View File

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