Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

collab: Add `use_llm_request_queue` to `LlmTokenClaims` (#29877)

Marshall Bowerscceb13b7cdcf
diff --git a/crates/collab/src/llm/token.rs b/crates/collab/src/llm/token.rs
index 9387c4d3f86..bf510c9c0d7 100644
--- a/crates/collab/src/llm/token.rs
+++ b/crates/collab/src/llm/token.rs
@@ -30,6 +30,8 @@ pub struct LlmTokenClaims {
pub has_llm_closed_beta_feature_flag: bool,
pub bypass_account_age_check: bool,
pub has_llm_subscription: bool,
+ #[serde(default)]
+ pub use_llm_request_queue: bool,
pub max_monthly_spend_in_cents: u32,
pub custom_llm_monthly_allowance_in_cents: Option<u32>,
#[serde(default)]
@@ -93,6 +95,7 @@ impl LlmTokenClaims {
.custom_llm_monthly_allowance_in_cents
.map(|allowance| allowance as u32),
use_new_billing: feature_flags.iter().any(|flag| flag == "new-billing"),
+ use_llm_request_queue: feature_flags.iter().any(|flag| flag == "llm-request-queue"),
plan: subscription
.as_ref()
.and_then(|subscription| subscription.kind)