diff --git a/app/main.py b/app/main.py index c4c743f..8176268 100644 --- a/app/main.py +++ b/app/main.py @@ -40,6 +40,12 @@ BROKER_SECRET = os.environ.get("BROKER_SECRET", "") DEFAULT_CREDIT_PACK_URL = "https://opencollective.com/inference-cooperative/contribute" CREDIT_PACK_URL = (os.environ.get("CREDIT_PACK_URL") or "").strip() or DEFAULT_CREDIT_PACK_URL +# Where a GUEST account's "Become a member" button points (the contribution +# page — what actually starts a membership). Deliberately independent of +# CREDIT_PACK_URL: a guest needs a membership, not a credit pack, even if the +# credit-pack link is ever repointed at a pack page. +BECOME_MEMBER_URL = "https://opencollective.com/inference-cooperative/contribute" + app = FastAPI() @@ -311,6 +317,7 @@ def render_page(identity: str) -> str: return ( PAGE_HTML.replace("@@IDENTITY@@", _esc(identity)) .replace("@@CREDIT_PACK_URL@@", _esc(CREDIT_PACK_URL)) + .replace("@@BECOME_MEMBER_URL@@", _esc(BECOME_MEMBER_URL)) ) @@ -590,7 +597,7 @@ PAGE_HTML = """
Shared across chat and API.
- Buy a credit pack + Buy a credit pack Credit packs never expire · used after your monthly allowance More about allowance & credits → @@ -656,7 +663,7 @@ PAGE_HTML = """
-
+