mirror of
https://github.com/openai/codex.git
synced 2026-11-05 16:29:31 +00:00
Support the ent26 enterprise plan (#35238)
## What changed - Recognize `ent26` in authentication, account protocol, backend rate-limit payloads, and generated app-server schemas. - Treat it as an enterprise workspace plan for cloud-config eligibility and business-style usage-limit guidance. - Cover token parsing, serialization, backend mapping, plan classification, cloud-config access, and usage-limit formatting with tests. GitOrigin-RevId: 537d897c8b1d80bcdb66d0fd402563fbb8c5a277
This commit is contained in:
1 parent
99744cfe04
commit
544007d006
16 files changed
+71
-13
No files matched your search
@@ -336,17 +336,19 @@ fn usage_limit_reached_error_formats_team_plan() {
|
||||
|
||||
#[test]
|
||||
fn usage_limit_reached_error_formats_business_plan_without_reset() {
|
||||
let err = UsageLimitReachedError {
|
||||
plan_type: Some(PlanType::Known(KnownPlan::Business)),
|
||||
resets_at: None,
|
||||
rate_limits: Some(Box::new(rate_limit_snapshot())),
|
||||
promo_message: None,
|
||||
rate_limit_reached_type: None,
|
||||
};
|
||||
assert_eq!(
|
||||
err.to_string(),
|
||||
"You've hit your usage limit. To get more access now, send a request to your admin or try again later."
|
||||
);
|
||||
for plan in [KnownPlan::Business, KnownPlan::Ent26] {
|
||||
let err = UsageLimitReachedError {
|
||||
plan_type: Some(PlanType::Known(plan)),
|
||||
resets_at: None,
|
||||
rate_limits: Some(Box::new(rate_limit_snapshot())),
|
||||
promo_message: None,
|
||||
rate_limit_reached_type: None,
|
||||
};
|
||||
assert_eq!(
|
||||
err.to_string(),
|
||||
"You've hit your usage limit. To get more access now, send a request to your admin or try again later."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in new issue
Block a user