mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
Add Pro Max plan support and update Pro display names (#47971)
## What changed - Recognize `promax` in authentication, account responses, and backend rate limits; update generated schemas and client types. - Display `prolite` as “Pro”, `pro` as “Pro (More)”, and `promax` as “Pro (Max)” in account labels, status, and analytics. - Include Pro Max in experimental context eligibility, paid-plan tooltips, and usage-limit guidance for purchasing credits. ## Testing Extend coverage for Pro Max plan parsing, account and rate-limit responses, experimental context eligibility, and plan display names. Update the login token test to expect “Pro (More)”. GitOrigin-RevId: 197e00fa7a99cbce125c8f1d43a451ec1ed5c1fb
This commit is contained in:
@@ -3279,6 +3279,7 @@ async fn get_account_with_chatgpt() -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test_case("promax", AccountPlanType::ProMax; "pro_max")]
|
||||
#[test_case("self_serve_business_prolite", AccountPlanType::SelfServeBusinessProLite; "business_prolite")]
|
||||
#[test_case("edu_plus", AccountPlanType::EduPlus; "edu_plus")]
|
||||
#[test_case("edu_pro", AccountPlanType::EduPro; "edu_pro")]
|
||||
|
||||
@@ -98,6 +98,7 @@ async fn get_account_rate_limits_requires_chatgpt_auth() -> Result<()> {
|
||||
}
|
||||
|
||||
#[test_case("enterprise_cbp_automation", AccountPlanType::EnterpriseCbpAutomation; "enterprise_automation")]
|
||||
#[test_case("promax", AccountPlanType::ProMax; "pro_max")]
|
||||
#[test_case("edu_plus", AccountPlanType::EduPlus; "edu_plus")]
|
||||
#[test_case("edu_pro", AccountPlanType::EduPro; "edu_pro")]
|
||||
#[tokio::test]
|
||||
|
||||
Reference in New Issue
Block a user