feat: task pre consume modelPrice default use setting value

This commit is contained in:
feitianbubu
2026-01-24 15:31:49 +08:00
parent 51751c9101
commit 9c91b8fb18

View File

@@ -144,7 +144,7 @@ func RelayTaskSubmit(c *gin.Context, info *relaycommon.RelayInfo) (taskErr *dto.
if !success {
defaultPrice, ok := ratio_setting.GetDefaultModelPriceMap()[modelName]
if !ok {
modelPrice = 0.1
modelPrice = float64(common.PreConsumedQuota) / common.QuotaPerUnit
} else {
modelPrice = defaultPrice
}