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

Function ModelRequestRateLimitGroup2JSONString

setting/rate_limit.go:17–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15var ModelRequestRateLimitMutex sync.RWMutex
16
17func ModelRequestRateLimitGroup2JSONString() string {
18 ModelRequestRateLimitMutex.RLock()
19 defer ModelRequestRateLimitMutex.RUnlock()
20
21 jsonBytes, err := json.Marshal(ModelRequestRateLimitGroup)
22 if err != nil {
23 common.SysError("error marshalling model ratio: " + err.Error())
24 }
25 return string(jsonBytes)
26}
27
28func UpdateModelRequestRateLimitGroupByJSONString(jsonStr string) error {
29 ModelRequestRateLimitMutex.RLock()

Callers 1

InitOptionMapFunction · 0.92

Calls 2

SysErrorFunction · 0.92
ErrorMethod · 0.80

Tested by

no test coverage detected