Merge pull request #80 from songquanpeng/main

Fork Sync: Update from parent repository
This commit is contained in:
quzard 2023-06-25 11:23:04 +08:00 committed by GitHub
commit e097a418fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,9 @@ func GetSubscription(c *gin.Context) {
if common.DisplayInCurrencyEnabled {
amount /= common.QuotaPerUnit
}
if token != nil && token.UnlimitedQuota {
amount = 100000000
}
subscription := OpenAISubscriptionResponse{
Object: "billing_subscription",
HasPaymentMethod: true,