Skip to content

Commit 33f1fe5

Browse files
authored
fix(server): Codex accounts show ChatGPT's current plan names (#24200)
1 parent 52628d8 commit 33f1fe5

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎apps/server/src/provider/CodexProvider.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@ export function codexPlanLabel(planType: string | null | undefined): string | un
131131
case "plus":
132132
return "ChatGPT Plus Subscription";
133133
case "pro":
134-
return "ChatGPT Pro 20x Subscription";
134+
return "ChatGPT Pro 200 Subscription";
135135
case "prolite":
136-
return "ChatGPT Pro 5x Subscription";
136+
return "ChatGPT Pro 100 Subscription";
137137
case "promax":
138-
return "ChatGPT Pro Max Subscription";
139-
case "team":
140-
return "ChatGPT Team Subscription";
138+
return "ChatGPT Pro 500 Subscription";
141139
case "self_serve_business_prolite":
140+
return "ChatGPT Business Premium Subscription";
141+
case "team":
142142
case "self_serve_business_usage_based":
143143
case "business":
144144
return "ChatGPT Business Subscription";

‎apps/server/src/provider/ProviderRegistry.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ it.layer(
346346
assert.strictEqual(status.version, "1.0.0");
347347
assert.strictEqual(status.auth.status, "authenticated");
348348
assert.strictEqual(status.auth.type, "chatgpt");
349-
assert.strictEqual(status.auth.label, "ChatGPT Pro 20x Subscription");
349+
assert.strictEqual(status.auth.label, "ChatGPT Pro 200 Subscription");
350350
assert.strictEqual(status.auth.email, "[email protected]");
351351
assert.deepStrictEqual(status.setup, { canAuthenticate: false, canInstall: false });
352352
assert.deepStrictEqual(status.models, [

0 commit comments

Comments
 (0)