refactor(cliproxy): extract generic buildConfigModels function for model info generation

This commit is contained in:
hkfires
2025-12-30 13:35:22 +08:00
parent 08ab6a7d77
commit 70fdd70b84
3 changed files with 55 additions and 124 deletions

View File

@@ -42,6 +42,9 @@ type VertexCompatModel struct {
Alias string `yaml:"alias" json:"alias"`
}
func (m VertexCompatModel) GetName() string { return m.Name }
func (m VertexCompatModel) GetAlias() string { return m.Alias }
// SanitizeVertexCompatKeys deduplicates and normalizes Vertex-compatible API key credentials.
func (cfg *Config) SanitizeVertexCompatKeys() {
if cfg == nil {