MCPcopy Index your code
hub / github.com/SMNETSTUDIO/You2API / getReverseModelMap

Function getReverseModelMap

api/main.go:85–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83}
84
85func getReverseModelMap() map[string]string {
86 reverse := make(map[string]string, len(modelMap))
87 for k, v := range modelMap {
88 reverse[v] = k
89 }
90 return reverse
91}
92
93func mapModelName(openAIModel string) string {
94 if mappedModel, exists := modelMap[openAIModel]; exists {

Callers 1

reverseMapModelNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected