VertexCompatModel represents a model configuration for Vertex compatibility, including the actual model name and its alias for API routing.
| 45 | // VertexCompatModel represents a model configuration for Vertex compatibility, |
| 46 | // including the actual model name and its alias for API routing. |
| 47 | type VertexCompatModel struct { |
| 48 | // Name is the actual model name used by the external provider. |
| 49 | Name string `yaml:"name" json:"name"` |
| 50 | |
| 51 | // Alias is the model name alias that clients will use to reference this model. |
| 52 | Alias string `yaml:"alias" json:"alias"` |
| 53 | |
| 54 | // ForceMapping rewrites upstream response model fields back to Alias. |
| 55 | ForceMapping bool `yaml:"force-mapping,omitempty" json:"force-mapping,omitempty"` |
| 56 | } |
| 57 | |
| 58 | func (m VertexCompatModel) GetName() string { return m.Name } |
| 59 | func (m VertexCompatModel) GetAlias() string { return m.Alias } |
nothing calls this directly
no outgoing calls
no test coverage detected