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

Struct VertexCompatModel

internal/config/vertex_compat.go:47–56  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

45// VertexCompatModel represents a model configuration for Vertex compatibility,
46// including the actual model name and its alias for API routing.
47type VertexCompatModel struct {
48 // Name is the actual model name used by the external provider.
49 Name string `yaml:"name" json:"name"`
50
51 // Alias is the model name alias that clients will use to reference this model.
52 Alias string `yaml:"alias" json:"alias"`
53
54 // ForceMapping rewrites upstream response model fields back to Alias.
55 ForceMapping bool `yaml:"force-mapping,omitempty" json:"force-mapping,omitempty"`
56}
57
58func (m VertexCompatModel) GetName() string { return m.Name }
59func (m VertexCompatModel) GetAlias() string { return m.Alias }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected