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

Function UpdateModelRequestRateLimitGroupByJSONString

setting/rate_limit.go:28–34  ·  view source on GitHub ↗
(jsonStr string)

Source from the content-addressed store, hash-verified

26}
27
28func UpdateModelRequestRateLimitGroupByJSONString(jsonStr string) error {
29 ModelRequestRateLimitMutex.RLock()
30 defer ModelRequestRateLimitMutex.RUnlock()
31
32 ModelRequestRateLimitGroup = make(map[string][2]int)
33 return json.Unmarshal([]byte(jsonStr), &ModelRequestRateLimitGroup)
34}
35
36func GetGroupRateLimit(group string) (totalCount, successCount int, found bool) {
37 ModelRequestRateLimitMutex.RLock()

Callers 1

updateOptionMapFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected