mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-21 19:16:36 +08:00
fix: add warning log for model ratios below threshold
This commit is contained in:
parent
400ee3aa24
commit
3bf121aae8
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user