feat: task pre consume modelPrice default use setting value
This commit is contained in:
parent
ceca9cf9af
commit
09be6d54e3
@ -144,7 +144,7 @@ func RelayTaskSubmit(c *gin.Context, info *relaycommon.RelayInfo) (taskErr *dto.
|
|||||||
if !success {
|
if !success {
|
||||||
defaultPrice, ok := ratio_setting.GetDefaultModelPriceMap()[modelName]
|
defaultPrice, ok := ratio_setting.GetDefaultModelPriceMap()[modelName]
|
||||||
if !ok {
|
if !ok {
|
||||||
modelPrice = 0.1
|
modelPrice = float64(common.PreConsumedQuota) / common.QuotaPerUnit
|
||||||
} else {
|
} else {
|
||||||
modelPrice = defaultPrice
|
modelPrice = defaultPrice
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user