mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-11 19:03:43 +08:00
fix: add warning log for model ratios below threshold
This commit is contained in:
@@ -910,6 +910,7 @@ func UpdateModelRatioByJSONString(jsonStr string) error {
|
||||
"stability-ai/stable-diffusion-3.5-large-turbo",
|
||||
"stability-ai/stable-diffusion-3.5-medium":
|
||||
if ratio < 1000 {
|
||||
logger.SysWarnf("the model ratio of %s is less than 1000, please check it", name)
|
||||
ModelRatio[name] = ratio * 1000
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user