|
|
@@ -15,6 +15,7 @@ import (
|
|
|
"github.com/QuantumNous/new-api/relay/channel/minimax"
|
|
|
"github.com/QuantumNous/new-api/relay/channel/moonshot"
|
|
|
relaycommon "github.com/QuantumNous/new-api/relay/common"
|
|
|
+ "github.com/QuantumNous/new-api/relay/helper"
|
|
|
"github.com/QuantumNous/new-api/service"
|
|
|
"github.com/QuantumNous/new-api/setting/operation_setting"
|
|
|
"github.com/QuantumNous/new-api/types"
|
|
|
@@ -133,7 +134,7 @@ func ListModels(c *gin.Context, modelType int) {
|
|
|
}
|
|
|
for allowModel, _ := range tokenModelLimit {
|
|
|
if !acceptUnsetRatioModel {
|
|
|
- if !model.HasModelBillingConfig(allowModel) {
|
|
|
+ if !helper.HasModelBillingConfig(allowModel) {
|
|
|
continue
|
|
|
}
|
|
|
}
|
|
|
@@ -180,7 +181,7 @@ func ListModels(c *gin.Context, modelType int) {
|
|
|
}
|
|
|
for _, modelName := range models {
|
|
|
if !acceptUnsetRatioModel {
|
|
|
- if !model.HasModelBillingConfig(modelName) {
|
|
|
+ if !helper.HasModelBillingConfig(modelName) {
|
|
|
continue
|
|
|
}
|
|
|
}
|