Просмотр исходного кода

chore: update the number that representing the unlimited quota

JustSong 2 лет назад
Родитель
Сommit
4a6a7f4635
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      controller/billing.go

+ 1 - 1
controller/billing.go

@@ -33,7 +33,7 @@ func GetSubscription(c *gin.Context) {
 		amount /= common.QuotaPerUnit
 		amount /= common.QuotaPerUnit
 	}
 	}
 	if token != nil && token.UnlimitedQuota {
 	if token != nil && token.UnlimitedQuota {
-		amount = 99999999.9999
+		amount = 100000000
 	}
 	}
 	subscription := OpenAISubscriptionResponse{
 	subscription := OpenAISubscriptionResponse{
 		Object:             "billing_subscription",
 		Object:             "billing_subscription",