MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / GetModelSupportEndpointTypes

Function GetModelSupportEndpointTypes

model/pricing.go:49–59  ·  view source on GitHub ↗
(model string)

Source from the content-addressed store, hash-verified

47}
48
49func GetModelSupportEndpointTypes(model string) []constant.EndpointType {
50 if model == "" {
51 return make([]constant.EndpointType, 0)
52 }
53 modelSupportEndpointsLock.RLock()
54 defer modelSupportEndpointsLock.RUnlock()
55 if endpoints, ok := modelSupportEndpointTypes[model]; ok {
56 return endpoints
57 }
58 return make([]constant.EndpointType, 0)
59}
60
61func updatePricing() {
62 //modelRatios := common.GetModelRatios()

Callers 1

ListModelsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected