Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
collab: Improve error message when requesting an LLM token without a subscription (#30405)
Marshall Bowerscf8f0039162f
diff --git a/crates/collab/src/llm/token.rs b/crates/collab/src/llm/token.rsindex 46eb26e99dd..5d9ab452ea2 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 {