diff --git a/controller/billing.go b/controller/billing.go index 18a34dc..8197bc8 100644 --- a/controller/billing.go +++ b/controller/billing.go @@ -48,6 +48,9 @@ func GetUsage(c *gin.Context) { return } amount := float64(quota) + if common.DisplayInCurrencyEnabled { + amount /= common.QuotaPerUnit + } usage := OpenAIUsageResponse{ Object: "list", TotalUsage: amount,