Treat ChatGPT hc plan as Enterprise (#15789)

This commit is contained in:
arnavdugar-openai
2026-03-25 15:41:29 -07:00
committed by GitHub
parent b6524514c1
commit eee692e351
3 changed files with 45 additions and 1 deletions

View File

@@ -72,7 +72,7 @@ impl PlanType {
"pro" => Self::Known(KnownPlan::Pro),
"team" => Self::Known(KnownPlan::Team),
"business" => Self::Known(KnownPlan::Business),
"enterprise" => Self::Known(KnownPlan::Enterprise),
"enterprise" | "hc" => Self::Known(KnownPlan::Enterprise),
"education" | "edu" => Self::Known(KnownPlan::Edu),
_ => Self::Unknown(raw.to_string()),
}
@@ -88,6 +88,7 @@ pub enum KnownPlan {
Pro,
Team,
Business,
#[serde(alias = "hc")]
Enterprise,
Edu,
}