mirror of
https://github.com/router-for-me/CLIProxyAPIPlus.git
synced 2026-04-26 11:05:16 +00:00
feat(vertex): add --vertex-import-prefix flag for model namespacing
This commit is contained in:
@@ -20,7 +20,7 @@ import (
|
||||
// DoVertexImport imports a Google Cloud service account key JSON and persists
|
||||
// it as a "vertex" provider credential. The file content is embedded in the auth
|
||||
// file to allow portable deployment across stores.
|
||||
func DoVertexImport(cfg *config.Config, keyPath string) {
|
||||
func DoVertexImport(cfg *config.Config, keyPath string, prefix string) {
|
||||
if cfg == nil {
|
||||
cfg = &config.Config{}
|
||||
}
|
||||
@@ -69,6 +69,7 @@ func DoVertexImport(cfg *config.Config, keyPath string) {
|
||||
ProjectID: projectID,
|
||||
Email: email,
|
||||
Location: location,
|
||||
Prefix: strings.TrimSpace(prefix),
|
||||
}
|
||||
metadata := map[string]any{
|
||||
"service_account": sa,
|
||||
|
||||
Reference in New Issue
Block a user