fix(price): 未设置价格,错误返回模型价格匹配的名字

This commit is contained in:
Xyfacai
2025-07-20 10:12:36 +08:00
parent 986558fea7
commit 7aa2972c3f
4 changed files with 9 additions and 8 deletions

View File

@@ -369,7 +369,7 @@ func handleThinkingBudgetModel(name, prefix, wildcard string) string {
return name
}
func GetModelRatio(name string) (float64, bool) {
func GetModelRatio(name string) (float64, bool, string) {
modelRatioMapMutex.RLock()
defer modelRatioMapMutex.RUnlock()
@@ -380,9 +380,9 @@ func GetModelRatio(name string) (float64, bool) {
}
ratio, ok := modelRatioMap[name]
if !ok {
return 37.5, operation_setting.SelfUseModeEnabled
return 37.5, operation_setting.SelfUseModeEnabled, name
}
return ratio, true
return ratio, true, name
}
func DefaultModelRatio2JSONString() string {