Commit 534e499c by Seefs Committed by GitHub

Merge pull request #2733 from feitianbubu/pr/92eee074a8105d7331d0987d96dc78bae181e331

feat: task pre consume modelPrice default use setting value
parents e088e459 09be6d54
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment