diff --git a/packages/app/src/providers/connect/dialog.stories.tsx b/packages/app/src/providers/connect/dialog.stories.tsx index 15553d1ba6e..5f0ce2b564a 100644 --- a/packages/app/src/providers/connect/dialog.stories.tsx +++ b/packages/app/src/providers/connect/dialog.stories.tsx @@ -66,8 +66,9 @@ export const OpenCodeZen = { export const LoginMethods = { render: renderConnection("openai", [ - { type: "oauth", label: "ChatGPT Pro/Plus (browser)" }, - { type: "oauth", label: "ChatGPT Pro/Plus (headless)" }, + { type: "oauth", label: "Sign in with ChatGPT" }, + { type: "oauth", label: "ChatGPT browser (legacy)" }, + { type: "oauth", label: "ChatGPT device code (legacy)" }, { type: "key", label: "API key" }, ]), } diff --git a/packages/core/src/plugin/provider/openai.ts b/packages/core/src/plugin/provider/openai.ts index 092758cbd1d..6d312a3c459 100644 --- a/packages/core/src/plugin/provider/openai.ts +++ b/packages/core/src/plugin/provider/openai.ts @@ -55,7 +55,7 @@ const browser = (app: App.Info) => method: { id: browserMethodID, type: "oauth", - label: "ChatGPT Pro/Plus (browser)", + label: "ChatGPT browser (legacy)", }, authorize: () => Effect.gen(function* () { @@ -123,7 +123,7 @@ function listen(server: Server) { Effect.catchIf(addressInUse, () => Effect.fail( new Error( - `OpenAI browser login needs local port ${callbackPort} or ${callbackFallbackPort}, but both are already in use. Stop the processes using those ports or choose ChatGPT Pro/Plus (headless), then try again.`, + `OpenAI browser login needs local port ${callbackPort} or ${callbackFallbackPort}, but both are already in use. Stop the processes using those ports or choose ChatGPT device code (legacy), then try again.`, ), ), ), @@ -174,7 +174,7 @@ const headless = (app: App.Info) => method: { id: headlessMethodID, type: "oauth", - label: "ChatGPT Pro/Plus (headless)", + label: "ChatGPT device code (legacy)", }, authorize: () => Effect.gen(function* () { diff --git a/packages/core/test/plugin/provider-openai.test.ts b/packages/core/test/plugin/provider-openai.test.ts index e57090293b8..0f5a6b00ba0 100644 --- a/packages/core/test/plugin/provider-openai.test.ts +++ b/packages/core/test/plugin/provider-openai.test.ts @@ -73,12 +73,12 @@ describe("OpenAIPlugin", () => { { id: Integration.MethodID.make("chatgpt-browser"), type: "oauth", - label: "ChatGPT Pro/Plus (browser)", + label: "ChatGPT browser (legacy)", }, { id: Integration.MethodID.make("chatgpt-headless"), type: "oauth", - label: "ChatGPT Pro/Plus (headless)", + label: "ChatGPT device code (legacy)", }, ]) }), diff --git a/packages/server/test/fetch.test.ts b/packages/server/test/fetch.test.ts index 9a59cd2afc9..b2f98b57d9e 100644 --- a/packages/server/test/fetch.test.ts +++ b/packages/server/test/fetch.test.ts @@ -320,7 +320,7 @@ it.live( expect(yield* Effect.promise(() => response.json())).toEqual({ _tag: "InvalidRequestError", message: - "OpenAI browser login needs local port 1455 or 1457, but both are already in use. Stop the processes using those ports or choose ChatGPT Pro/Plus (headless), then try again.", + "OpenAI browser login needs local port 1455 or 1457, but both are already in use. Stop the processes using those ports or choose ChatGPT device code (legacy), then try again.", kind: "integration_authorization", }) }), diff --git a/services/www/src/docs/content/cli/providers.mdx b/services/www/src/docs/content/cli/providers.mdx index 7f3a13217e5..663e357776f 100644 --- a/services/www/src/docs/content/cli/providers.mdx +++ b/services/www/src/docs/content/cli/providers.mdx @@ -20,7 +20,7 @@ code to enter; press `o` to open the URL and `c` to copy the authorization detai ```text /connect -# Select OpenAI, then ChatGPT Pro/Plus (headless). +# Select OpenAI, then ChatGPT device code (legacy). ``` Run `/connect` again to add another account. Selecting an already connected provider opens its account list, where you