28e53d90fc
- 统一 OpenAI 兼容 /v1 中继 + 渠道/额度/令牌/流水 - 各领域包:relay 模型网关、model 数据层、controller 管理 API
14 lines
311 B
Go
14 lines
311 B
Go
package common
|
|
|
|
import "github.com/QuantumNous/new-api/constant"
|
|
|
|
const defaultAnonymousRequestBodyLimitKB = 512
|
|
|
|
func GetAnonymousRequestBodyLimitBytes() int64 {
|
|
limitKB := constant.AnonymousRequestBodyLimitKB
|
|
if limitKB < 0 {
|
|
limitKB = defaultAnonymousRequestBodyLimitKB
|
|
}
|
|
return int64(limitKB) << 10
|
|
}
|