fix(billing): 默认开启 OpenAI 长上下文计费

This commit is contained in:
benjamin
2026-07-13 17:55:01 +08:00
parent 0d9c140bc2
commit a0ac5e0240
22 changed files with 1517 additions and 66 deletions
@@ -115,6 +115,10 @@ func (h *AccountHandler) ImportCodexSession(c *gin.Context) {
response.BadRequest(c, "Invalid request: "+err.Error())
return
}
if err := service.ValidateOpenAILongContextBillingExtra(service.PlatformOpenAI, req.Extra); err != nil {
response.ErrorFrom(c, err)
return
}
if req.Concurrency != nil && *req.Concurrency < 0 {
response.BadRequest(c, "concurrency must be >= 0")
return