From 2b902c185eb9dcc9b8d6cef11ab703d183789550 Mon Sep 17 00:00:00 2001 From: "gcp-cherry-pick-bot[bot]" <98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com> Date: Wed, 16 Oct 2024 14:43:49 -0400 Subject: [PATCH] assistant: Direct user to account page to subscribe for more LLM usage (cherry-pick #19300) (#19302) Cherry-picked assistant: Direct user to account page to subscribe for more LLM usage (#19300) This PR updates the location where we send the user to subscribe for more LLM usage to the account page. Release Notes: - Updated the URL to the account page when subscribing to LLM usage. Co-authored-by: Marshall Bowers --- crates/assistant/src/assistant_panel.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/assistant/src/assistant_panel.rs b/crates/assistant/src/assistant_panel.rs index 9f554a7e27fd11ee979b760ee4ce326a7a0606ef..35d5a31d96bb8798d2bac85576e8ad7424c0d014 100644 --- a/crates/assistant/src/assistant_panel.rs +++ b/crates/assistant/src/assistant_panel.rs @@ -4340,7 +4340,7 @@ impl ContextEditor { fn render_payment_required_error(&self, cx: &mut ViewContext) -> AnyElement { const ERROR_MESSAGE: &str = "Free tier exceeded. Subscribe and add payment to continue using Zed LLMs. You'll be billed at cost for tokens used."; - const SUBSCRIBE_URL: &str = "https://zed.dev/api/billing/initiate_checkout"; + const ACCOUNT_URL: &str = "https://zed.dev/account"; v_flex() .gap_0p5() @@ -4365,7 +4365,7 @@ impl ContextEditor { .child(Button::new("subscribe", "Subscribe").on_click(cx.listener( |this, _, cx| { this.last_error = None; - cx.open_url(SUBSCRIBE_URL); + cx.open_url(ACCOUNT_URL); cx.notify(); }, )))