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

Function ModelRatio2JSONString

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

Source from the content-addressed store, hash-verified

591}
592
593func ModelRatio2JSONString() string {
594 modelRatioMapMutex.RLock()
595 defer modelRatioMapMutex.RUnlock()
596
597 jsonBytes, err := json.Marshal(modelRatioMap)
598 if err != nil {
599 common.SysError("error marshalling model ratio: " + err.Error())
600 }
601 return string(jsonBytes)
602}
603
604var defaultImageRatio = map[string]float64{
605 "gpt-image-1": 2,

Callers 1

InitOptionMapFunction · 0.92

Calls 2

SysErrorFunction · 0.92
ErrorMethod · 0.80

Tested by

no test coverage detected