chore: billing api now will return a large number if unlimited quota is set

This commit is contained in:
JustSong 2023-06-25 10:39:22 +08:00
parent f6eb4e5628
commit 94ba3dd024

View File

@ -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,