Affected by GO-2025-4154
and 1 other vulnerabilities
GO-2025-4154: new-api is vulnerable to SSRF Bypass in one-api
GO-2026-4813: New API has passkey-based secure step-up verification bypass for root-only channel secret disclosure in github.com/QuantumNous/new-api
package
Version:
v0.13.0
Opens a new window with list of versions in this module.
Published: Apr 24, 2026
License: AGPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
BillingModeRatio = "ratio"
BillingModeTieredExpr = "tiered_expr"
)
type BillingSetting struct {
BillingMode map[string]string `json:"billing_mode"`
BillingExpr map[string]string `json:"billing_expr"`
}
BillingSetting is managed by config.GlobalConfig.Register.
DB keys: billing_setting.billing_mode, billing_setting.billing_expr
Source Files
¶
Click to show internal directories.
Click to hide internal directories.