Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Redirect to checkout page when payment is required (#19179)
Antonio Scandurraf2337bbed1d0
diff --git a/crates/assistant/src/assistant_panel.rs b/crates/assistant/src/assistant_panel.rsindex 0439122cb48..943cbbb29ff 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<Self>) -> 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/ai/subscribe";+ const SUBSCRIBE_URL: &str = "https://zed.dev/api/billing/initiate_checkout";v_flex().gap_0p5()