feat(vertex): add --vertex-import-prefix flag for model namespacing

This commit is contained in:
dinhkarate
2026-01-29 13:29:55 +07:00
parent fdeef48498
commit 14cb2b95c6
2 changed files with 5 additions and 2 deletions

View File

@@ -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,