From e609d8027f221212b7c7577665bbeb03c348d1d5 Mon Sep 17 00:00:00 2001 From: quzard <1191890118@qq.com> Date: Tue, 20 Jun 2023 21:08:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A2=9D=E5=BA=A6=E6=B1=87?= =?UTF-8?q?=E7=8E=87=E7=9A=84=E5=B1=95=E7=8E=B0=E5=BD=A2=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/billing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/billing.go b/controller/billing.go index ac99e887..ef72a62a 100644 --- a/controller/billing.go +++ b/controller/billing.go @@ -49,7 +49,7 @@ func GetUsage(c *gin.Context) { } amount := float64(quota) if common.DisplayInCurrencyEnabled { - amount /= common.QuotaPerUnit + amount = amount / 1000 * common.QuotaPerUnit } usage := OpenAIUsageResponse{ Object: "list",