From cf8f0039162fda6ca03f983168e7bd075961aca5 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Fri, 9 May 2025 12:51:41 -0400 Subject: [PATCH] collab: Improve error message when requesting an LLM token without a subscription (#30405) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR improves the error message when trying to obtain an LLM token without a subscription: Screenshot 2025-05-09 at 12 30 41 PM Release Notes: - N/A --- crates/collab/src/llm/token.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/collab/src/llm/token.rs b/crates/collab/src/llm/token.rs index 46eb26e99dd30fcb284e43111742821937c8e995..5d9ab452ea22208d349d8d0eeb8909b3327bb40d 100644 --- a/crates/collab/src/llm/token.rs +++ b/crates/collab/src/llm/token.rs @@ -66,7 +66,7 @@ impl LlmTokenClaims { let subscription_period = billing_subscription::Model::current_period(subscription, is_staff) .map(|(start, end)| (start.naive_utc(), end.naive_utc())) - .ok_or_else(|| anyhow!("missing subscription period"))?; + .ok_or_else(|| anyhow!("A plan is required to use Zed's hosted models or edit predictions. Visit https://zed.dev/account to get started."))?; let now = Utc::now(); let claims = Self {