From 94ba3dd024022be9cf01c7181d24f2979c3c93b4 Mon Sep 17 00:00:00 2001 From: JustSong Date: Sun, 25 Jun 2023 10:39:22 +0800 Subject: [PATCH] chore: billing api now will return a large number if unlimited quota is set --- controller/billing.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controller/billing.go b/controller/billing.go index 7bc63425..559d5e67 100644 --- a/controller/billing.go +++ b/controller/billing.go @@ -32,6 +32,9 @@ func GetSubscription(c *gin.Context) { if common.DisplayInCurrencyEnabled { amount /= common.QuotaPerUnit } + if token.UnlimitedQuota { + amount = 99999999.9999 + } subscription := OpenAISubscriptionResponse{ Object: "billing_subscription", HasPaymentMethod: true,