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

Struct GeminiModel

internal/config/config.go:634–643  ·  view source on GitHub ↗

GeminiModel describes a mapping between an alias and the actual upstream model name.

Source from the content-addressed store, hash-verified

632
633// GeminiModel describes a mapping between an alias and the actual upstream model name.
634type GeminiModel struct {
635 // Name is the upstream model identifier used when issuing requests.
636 Name string `yaml:"name" json:"name"`
637
638 // Alias is the client-facing model name that maps to Name.
639 Alias string `yaml:"alias" json:"alias"`
640
641 // ForceMapping rewrites upstream response model fields back to Alias.
642 ForceMapping bool `yaml:"force-mapping,omitempty" json:"force-mapping,omitempty"`
643}
644
645func (m GeminiModel) GetName() string { return m.Name }
646func (m GeminiModel) GetAlias() string { return m.Alias }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected