From 09be6d54e3bf8f778fe31dd7cd917b2b1de13546 Mon Sep 17 00:00:00 2001 From: feitianbubu Date: Sat, 24 Jan 2026 15:31:49 +0800 Subject: [PATCH] feat: task pre consume modelPrice default use setting value --- relay/relay_task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay/relay_task.go b/relay/relay_task.go index 61588f93..ebbd1f65 100644 --- a/relay/relay_task.go +++ b/relay/relay_task.go @@ -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 }