Skip to content
TypeScript

fix(server): Codex accounts show ChatGPT's current plan names (#24200)

oliver33f1fe5ebe53
diff --git a/apps/server/src/provider/CodexProvider.ts b/apps/server/src/provider/CodexProvider.ts
index 81d6842692e..d064dd708ad 100644
--- a/apps/server/src/provider/CodexProvider.ts
+++ b/apps/server/src/provider/CodexProvider.ts
@@ -131,14 +131,14 @@ export function codexPlanLabel(planType: string | null | undefined): string | un
case "plus":
return "ChatGPT Plus Subscription";
case "pro":
- return "ChatGPT Pro 20x Subscription";
+ return "ChatGPT Pro 200 Subscription";
case "prolite":
- return "ChatGPT Pro 5x Subscription";
+ return "ChatGPT Pro 100 Subscription";
case "promax":
- return "ChatGPT Pro Max Subscription";
- case "team":
- return "ChatGPT Team Subscription";
+ return "ChatGPT Pro 500 Subscription";
case "self_serve_business_prolite":
+ return "ChatGPT Business Premium Subscription";
+ case "team":
case "self_serve_business_usage_based":
case "business":
return "ChatGPT Business Subscription";
diff --git a/apps/server/src/provider/ProviderRegistry.test.ts b/apps/server/src/provider/ProviderRegistry.test.ts
index 65ceac5012a..4aeaddff8f4 100644
--- a/apps/server/src/provider/ProviderRegistry.test.ts
+++ b/apps/server/src/provider/ProviderRegistry.test.ts
@@ -346,7 +346,7 @@ it.layer(
assert.strictEqual(status.version, "1.0.0");
assert.strictEqual(status.auth.status, "authenticated");
assert.strictEqual(status.auth.type, "chatgpt");
- assert.strictEqual(status.auth.label, "ChatGPT Pro 20x Subscription");
+ assert.strictEqual(status.auth.label, "ChatGPT Pro 200 Subscription");
assert.strictEqual(status.auth.email, "[email protected]");
assert.deepStrictEqual(status.setup, { canAuthenticate: false, canInstall: false });
assert.deepStrictEqual(status.models, [