feat: publish sanitized custom.97 source
This commit is contained in:
1022 files changed
+69903
-19207
No files matched your search
@@ -6,6 +6,7 @@ import (
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/QuantumNous/new-api/common"
|
||||
"github.com/QuantumNous/new-api/constant"
|
||||
"github.com/QuantumNous/new-api/logger"
|
||||
relaycommon "github.com/QuantumNous/new-api/relay/common"
|
||||
@@ -66,7 +67,7 @@ func PrepareRequestBilling(c *gin.Context, info *relaycommon.RelayInfo) *types.N
|
||||
return nil
|
||||
}
|
||||
if priceData.FreeModel {
|
||||
logger.LogInfo(c, fmt.Sprintf("模型 %s 免费,跳过预扣费", info.OriginModelName))
|
||||
logger.LogInfo(c, common.LogText("model %s is free, skipping pre-consume", info.OriginModelName))
|
||||
return nil
|
||||
}
|
||||
return service.PreConsumeBilling(c, priceData.QuotaToPreConsume, info)
|
||||
|
||||
Reference in new issue
Block a user