From d35b646dbba542e5ec530273fd25ce31fb9039eb Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Wed, 16 Oct 2024 14:03:42 -0400 Subject: [PATCH] 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. --- 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 943cbbb29f..a3e189287f 100644 --- a/crates/assistant/src/assistant_panel.rs +++ b/crates/assistant/src/assistant_panel.rs @@ -4347,7 +4347,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() @@ -4372,7 +4372,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(); }, )))