mirror of
				https://github.com/songquanpeng/one-api.git
				synced 2025-11-04 07:43:41 +08:00 
			
		
		
		
	chore: billing api now will return a large number if unlimited quota is set
This commit is contained in:
		@@ -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,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user