From bb0b2a5b7b8e56bfe05e18de58f16712bdcd4baa Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Wed, 16 Apr 2025 13:11:18 -0400 Subject: [PATCH] collab: Remove `has_predict_edits_feature_flag` from `LlmTokenClaims` (#28879) This PR removes the `has_predict_edits_feature_flag` field from the `LlmTokenClaims`. We are no longer reading this anywhere. Release Notes: - N/A --- crates/collab/src/llm/token.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crates/collab/src/llm/token.rs b/crates/collab/src/llm/token.rs index 0979ff13b4..067be93076 100644 --- a/crates/collab/src/llm/token.rs +++ b/crates/collab/src/llm/token.rs @@ -25,7 +25,6 @@ pub struct LlmTokenClaims { pub is_staff: bool, pub has_llm_closed_beta_feature_flag: bool, pub bypass_account_age_check: bool, - pub has_predict_edits_feature_flag: bool, pub has_llm_subscription: bool, pub max_monthly_spend_in_cents: u32, pub custom_llm_monthly_allowance_in_cents: Option, @@ -70,9 +69,6 @@ impl LlmTokenClaims { bypass_account_age_check: feature_flags .iter() .any(|flag| flag == "bypass-account-age-check"), - has_predict_edits_feature_flag: feature_flags - .iter() - .any(|flag| flag == "predict-edits"), has_llm_subscription: has_legacy_llm_subscription, max_monthly_spend_in_cents: billing_preferences .map_or(DEFAULT_MAX_MONTHLY_SPEND.0, |preferences| {