OpenAICompatibilityModel represents a model configuration for OpenAI compatibility, including the actual model name and its alias for API routing.
| 690 | // OpenAICompatibilityModel represents a model configuration for OpenAI compatibility, |
| 691 | // including the actual model name and its alias for API routing. |
| 692 | type OpenAICompatibilityModel struct { |
| 693 | // Name is the actual model name used by the external provider. |
| 694 | Name string `yaml:"name" json:"name"` |
| 695 | |
| 696 | // Alias is the model name alias that clients will use to reference this model. |
| 697 | Alias string `yaml:"alias" json:"alias"` |
| 698 | |
| 699 | // ForceMapping rewrites upstream response model fields back to Alias. |
| 700 | ForceMapping bool `yaml:"force-mapping,omitempty" json:"force-mapping,omitempty"` |
| 701 | |
| 702 | // Image marks this model as callable through /v1/images/generations and /v1/images/edits. |
| 703 | Image bool `yaml:"image,omitempty" json:"image,omitempty"` |
| 704 | |
| 705 | // Thinking configures the thinking/reasoning capability for this model. |
| 706 | // If nil, the model defaults to level-based reasoning with levels ["low", "medium", "high"]. |
| 707 | Thinking *registry.ThinkingSupport `yaml:"thinking,omitempty" json:"thinking,omitempty"` |
| 708 | } |
| 709 | |
| 710 | func (m OpenAICompatibilityModel) GetName() string { return m.Name } |
| 711 | func (m OpenAICompatibilityModel) GetAlias() string { return m.Alias } |
nothing calls this directly
no outgoing calls
no test coverage detected