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
This commit is contained in:
parent
5c2c6d7e5e
commit
bb0b2a5b7b
1 changed files with 0 additions and 4 deletions
|
@ -25,7 +25,6 @@ pub struct LlmTokenClaims {
|
||||||
pub is_staff: bool,
|
pub is_staff: bool,
|
||||||
pub has_llm_closed_beta_feature_flag: bool,
|
pub has_llm_closed_beta_feature_flag: bool,
|
||||||
pub bypass_account_age_check: bool,
|
pub bypass_account_age_check: bool,
|
||||||
pub has_predict_edits_feature_flag: bool,
|
|
||||||
pub has_llm_subscription: bool,
|
pub has_llm_subscription: bool,
|
||||||
pub max_monthly_spend_in_cents: u32,
|
pub max_monthly_spend_in_cents: u32,
|
||||||
pub custom_llm_monthly_allowance_in_cents: Option<u32>,
|
pub custom_llm_monthly_allowance_in_cents: Option<u32>,
|
||||||
|
@ -70,9 +69,6 @@ impl LlmTokenClaims {
|
||||||
bypass_account_age_check: feature_flags
|
bypass_account_age_check: feature_flags
|
||||||
.iter()
|
.iter()
|
||||||
.any(|flag| flag == "bypass-account-age-check"),
|
.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,
|
has_llm_subscription: has_legacy_llm_subscription,
|
||||||
max_monthly_spend_in_cents: billing_preferences
|
max_monthly_spend_in_cents: billing_preferences
|
||||||
.map_or(DEFAULT_MAX_MONTHLY_SPEND.0, |preferences| {
|
.map_or(DEFAULT_MAX_MONTHLY_SPEND.0, |preferences| {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue