mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-18 20:30:51 +08:00
fix(executor): handle "global" location in AI platform URL generation
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user