feat: publish sanitized custom.97 source

This commit is contained in:
cneicy committed 2026-10-27 20:43:39 +08:00
1 parent 8e6ed0317b
commit 86c0276156
1022 files changed
+69903 -19207

No files matched your search

+1 -1
View File
@@ -79,7 +79,7 @@ func UpdateGroupRatioByJSONString(jsonStr string) error {
func GetGroupRatio(name string) float64 {
ratio, ok := groupRatioMap.Get(name)
if !ok {
common.SysLog("group ratio not found: " + name)
common.SysLog(common.LogText("group ratio not found: %s", name))
return 1
}
return ratio
+2 -2
View File
@@ -365,7 +365,7 @@ func GetModelPrice(name string, printErr bool) (float64, bool) {
}
if printErr {
common.SysError("model price not found: " + name)
common.SysError(common.LogText("model price not found: %s", name))
}
return -1, false
}
@@ -395,7 +395,7 @@ func GetModelRatio(name string) (float64, bool, string) {
func DefaultModelRatio2JSONString() string {
jsonBytes, err := common.Marshal(defaultModelRatio)
if err != nil {
common.SysError("error marshalling model ratio: " + err.Error())
common.SysError(common.LogText("error marshalling model ratio: %s", err.Error()))
}
return string(jsonBytes)
}