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

Function DefaultModelRatio2JSONString

setting/ratio_setting/model_ratio.go:388–394  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

386}
387
388func DefaultModelRatio2JSONString() string {
389 jsonBytes, err := json.Marshal(defaultModelRatio)
390 if err != nil {
391 common.SysError("error marshalling model ratio: " + err.Error())
392 }
393 return string(jsonBytes)
394}
395
396func GetDefaultModelRatioMap() map[string]float64 {
397 return defaultModelRatio

Callers 1

ResetModelRatioFunction · 0.92

Calls 2

SysErrorFunction · 0.92
ErrorMethod · 0.80

Tested by

no test coverage detected