From 5b789cb971dff2476c1d02c62008282beca9d181 Mon Sep 17 00:00:00 2001 From: Will Chen Date: Thu, 11 Dec 2025 13:29:43 -0800 Subject: [PATCH] Add GPT 5.2 and remove older OpenAI models (#1932) --- src/ipc/shared/language_model_constants.ts | 37 +++++++--------------- 1 file changed, 12 insertions(+), 25 deletions(-) diff --git a/src/ipc/shared/language_model_constants.ts b/src/ipc/shared/language_model_constants.ts index 0fdae3d..50eaa11 100644 --- a/src/ipc/shared/language_model_constants.ts +++ b/src/ipc/shared/language_model_constants.ts @@ -20,6 +20,18 @@ export interface ModelOption { export const MODEL_OPTIONS: Record = { openai: [ + // https://platform.openai.com/docs/models/gpt-5.1 + { + name: "gpt-5.2", + displayName: "GPT 5.2", + description: "OpenAI's latest model", + // Technically it's 128k but OpenAI errors if you set max_tokens instead of max_completion_tokens + maxOutputTokens: undefined, + contextWindow: 400_000, + // Requires temperature to be default value (1) + temperature: 1, + dollarSigns: 3, + }, // https://platform.openai.com/docs/models/gpt-5.1 { name: "gpt-5.1", @@ -94,31 +106,6 @@ export const MODEL_OPTIONS: Record = { temperature: 1, dollarSigns: 2, }, - // https://platform.openai.com/docs/models/gpt-5-nano - { - name: "gpt-5-nano", - displayName: "GPT 5 Nano", - description: "Fastest, most cost-efficient version of GPT-5", - // Technically it's 128k but OpenAI errors if you set max_tokens instead of max_completion_tokens - maxOutputTokens: undefined, - contextWindow: 400_000, - // Requires temperature to be default value (1) - temperature: 1, - dollarSigns: 1, - }, - // https://platform.openai.com/docs/models/o4-mini - { - name: "o4-mini", - displayName: "o4 mini", - description: "Reasoning model", - // Technically the max output tokens is 100k, *however* if the user has a lot of input tokens, - // then setting a high max output token will cause the request to fail because - // the max output tokens is *included* in the context window limit. - maxOutputTokens: 32_000, - contextWindow: 200_000, - temperature: 0, - dollarSigns: 2, - }, ], // https://docs.anthropic.com/en/docs/about-claude/models/all-models#model-comparison-table anthropic: [