Skip to content

Commit 70be79b

Browse files
committed
fix(browser): use Extended Pro label for ChatGPT Pro picker
1 parent ab116c0 commit 70be79b

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/browser/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { BrowserModelStrategy } from "./types.js";
22

33
export const CHATGPT_URL = "https://chatgpt.com/";
4-
export const DEFAULT_MODEL_TARGET = "GPT-5.4 Pro";
4+
export const DEFAULT_MODEL_TARGET = "Extended Pro";
55
export const DEFAULT_MODEL_STRATEGY: BrowserModelStrategy = "select";
66
export const COOKIE_URLS = [
77
"https://chatgpt.com",

src/cli/browserConfig.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ const DEFAULT_CHROME_PROFILE = "Default";
2525
// The browser label is passed to the model picker which fuzzy-matches against ChatGPT's UI.
2626
const BROWSER_MODEL_LABELS: [ModelName, string][] = [
2727
// Most specific first (e.g., "gpt-5.2-thinking" before "gpt-5.2")
28-
["gpt-5.4-pro", "GPT-5.4 Pro"],
28+
["gpt-5.4-pro", "Extended Pro"],
2929
["gpt-5.2-thinking", "GPT-5.2 Thinking"],
3030
["gpt-5.2-instant", "GPT-5.2 Instant"],
31-
["gpt-5.2-pro", "GPT-5.4 Pro"],
32-
["gpt-5.1-pro", "GPT-5.4 Pro"],
33-
["gpt-5-pro", "GPT-5.4 Pro"],
31+
["gpt-5.2-pro", "Extended Pro"],
32+
["gpt-5.1-pro", "Extended Pro"],
33+
["gpt-5-pro", "Extended Pro"],
3434
// Base models last (least specific)
3535
["gpt-5.4", "Thinking 5.4"],
3636
["gpt-5.2", "GPT-5.2"], // Selects "Auto" in ChatGPT UI

tests/cli/browserConfig.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe("buildBrowserConfig", () => {
1515
headless: undefined,
1616
keepBrowser: undefined,
1717
hideWindow: undefined,
18-
desiredModel: "GPT-5.4 Pro",
18+
desiredModel: "Extended Pro",
1919
debug: undefined,
2020
allowCookieErrors: true,
2121
});
@@ -76,7 +76,7 @@ describe("buildBrowserConfig", () => {
7676
model: "gpt-5.2-pro",
7777
browserModelLabel: "Instant",
7878
});
79-
expect(config.desiredModel).toBe("GPT-5.4 Pro");
79+
expect(config.desiredModel).toBe("Extended Pro");
8080
});
8181

8282
test("falls back to canonical label when override matches base model", async () => {
@@ -200,11 +200,11 @@ describe("buildBrowserConfig", () => {
200200

201201
describe("resolveBrowserModelLabel", () => {
202202
test("returns canonical ChatGPT label when CLI value matches API model", () => {
203-
expect(resolveBrowserModelLabel("gpt-5.4-pro", "gpt-5.4-pro")).toBe("GPT-5.4 Pro");
203+
expect(resolveBrowserModelLabel("gpt-5.4-pro", "gpt-5.4-pro")).toBe("Extended Pro");
204204
expect(resolveBrowserModelLabel("gpt-5.4", "gpt-5.4")).toBe("Thinking 5.4");
205-
expect(resolveBrowserModelLabel("gpt-5-pro", "gpt-5-pro")).toBe("GPT-5.4 Pro");
206-
expect(resolveBrowserModelLabel("gpt-5.2-pro", "gpt-5.2-pro")).toBe("GPT-5.4 Pro");
207-
expect(resolveBrowserModelLabel("gpt-5.1-pro", "gpt-5.1-pro")).toBe("GPT-5.4 Pro");
205+
expect(resolveBrowserModelLabel("gpt-5-pro", "gpt-5-pro")).toBe("Extended Pro");
206+
expect(resolveBrowserModelLabel("gpt-5.2-pro", "gpt-5.2-pro")).toBe("Extended Pro");
207+
expect(resolveBrowserModelLabel("gpt-5.1-pro", "gpt-5.1-pro")).toBe("Extended Pro");
208208
expect(resolveBrowserModelLabel("GPT-5.1", "gpt-5.1")).toBe("GPT-5.2");
209209
});
210210

@@ -217,7 +217,7 @@ describe("resolveBrowserModelLabel", () => {
217217
});
218218

219219
test("supports undefined or whitespace-only input", () => {
220-
expect(resolveBrowserModelLabel(undefined, "gpt-5.2-pro")).toBe("GPT-5.4 Pro");
220+
expect(resolveBrowserModelLabel(undefined, "gpt-5.2-pro")).toBe("Extended Pro");
221221
expect(resolveBrowserModelLabel(" ", "gpt-5.1")).toBe("GPT-5.2");
222222
});
223223

0 commit comments

Comments
 (0)