Forráskód Böngészése

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

feat: task pre consume modelPrice default use setting value
Seefs 1 hónapja
szülő
commit
621938699b
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      relay/relay_task.go

+ 1 - 1
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
 		}