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

Method GetModelLimitsMap

model/token.go:257–264  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

255}
256
257func (token *Token) GetModelLimitsMap() map[string]bool {
258 limits := token.GetModelLimits()
259 limitsMap := make(map[string]bool)
260 for _, limit := range limits {
261 limitsMap[limit] = true
262 }
263 return limitsMap
264}
265
266func DisableModelLimits(tokenId int) error {
267 token, err := GetTokenById(tokenId)

Callers 1

SetupContextForTokenFunction · 0.80

Calls 1

GetModelLimitsMethod · 0.95

Tested by

no test coverage detected