CodexModel describes a mapping between an alias and the actual upstream model name.
| 581 | |
| 582 | // CodexModel describes a mapping between an alias and the actual upstream model name. |
| 583 | type CodexModel struct { |
| 584 | // Name is the upstream model identifier used when issuing requests. |
| 585 | Name string `yaml:"name" json:"name"` |
| 586 | |
| 587 | // Alias is the client-facing model name that maps to Name. |
| 588 | Alias string `yaml:"alias" json:"alias"` |
| 589 | |
| 590 | // ForceMapping rewrites upstream response model fields back to Alias. |
| 591 | ForceMapping bool `yaml:"force-mapping,omitempty" json:"force-mapping,omitempty"` |
| 592 | } |
| 593 | |
| 594 | func (m CodexModel) GetName() string { return m.Name } |
| 595 | func (m CodexModel) GetAlias() string { return m.Alias } |
nothing calls this directly
no outgoing calls
no test coverage detected