MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / OpenAICompatibilityModel

Struct OpenAICompatibilityModel

internal/config/config.go:692–708  ·  view source on GitHub ↗

OpenAICompatibilityModel represents a model configuration for OpenAI compatibility, including the actual model name and its alias for API routing.

Source from the content-addressed store, hash-verified

690// OpenAICompatibilityModel represents a model configuration for OpenAI compatibility,
691// including the actual model name and its alias for API routing.
692type 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
710func (m OpenAICompatibilityModel) GetName() string { return m.Name }
711func (m OpenAICompatibilityModel) GetAlias() string { return m.Alias }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected