diff --git a/controller/billing.go b/controller/billing.go index 559d5e67cf..da1ef13d4e 100644 --- a/controller/billing.go +++ b/controller/billing.go @@ -32,7 +32,7 @@ func GetSubscription(c *gin.Context) { if common.DisplayInCurrencyEnabled { amount /= common.QuotaPerUnit } - if token.UnlimitedQuota { + if token != nil && token.UnlimitedQuota { amount = 99999999.9999 } subscription := OpenAISubscriptionResponse{