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

Struct CodexModel

internal/config/config.go:583–592  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

581
582// CodexModel describes a mapping between an alias and the actual upstream model name.
583type 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
594func (m CodexModel) GetName() string { return m.Name }
595func (m CodexModel) GetAlias() string { return m.Alias }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected