Revert "Feat/new saas billing" (#12673)

This commit is contained in:
Jyong
2025-01-13 15:17:43 +08:00
committed by GitHub
parent 54b5b80a07
commit 9a6b1dc3a1
9 changed files with 3 additions and 144 deletions

View File

@@ -19,14 +19,6 @@ class BillingService:
billing_info = cls._send_request("GET", "/subscription/info", params=params)
return billing_info
@classmethod
def get_knowledge_rate_limit(cls, tenant_id: str):
params = {"tenant_id": tenant_id}
knowledge_rate_limit = cls._send_request("GET", "/subscription/knowledge-rate-limit", params=params)
return knowledge_rate_limit.get("limit", 10)
@classmethod
def get_subscription(cls, plan: str, interval: str, prefilled_email: str = "", tenant_id: str = ""):
params = {"plan": plan, "interval": interval, "prefilled_email": prefilled_email, "tenant_id": tenant_id}