diff --git a/src/ipc/shared/language_model_constants.ts b/src/ipc/shared/language_model_constants.ts index 7536dae..cc110b8 100644 --- a/src/ipc/shared/language_model_constants.ts +++ b/src/ipc/shared/language_model_constants.ts @@ -20,11 +20,12 @@ export interface ModelOption { export const MODEL_OPTIONS: Record = { openai: [ - // https://platform.openai.com/docs/models/gpt-5-codex + // https://platform.openai.com/docs/models/gpt-5.1 { - name: "gpt-5-codex", - displayName: "GPT 5 Codex", - description: "OpenAI's flagship model optimized for coding", + name: "gpt-5.1", + displayName: "GPT 5.1", + description: + "OpenAI's flagship model- smarter, faster, and more conversational", // Technically it's 128k but OpenAI errors if you set max_tokens instead of max_completion_tokens maxOutputTokens: undefined, contextWindow: 400_000, @@ -32,6 +33,31 @@ export const MODEL_OPTIONS: Record = { temperature: 1, dollarSigns: 3, }, + // https://platform.openai.com/docs/models/gpt-5.1-codex + { + name: "gpt-5.1-codex", + displayName: "GPT 5.1 Codex", + description: "OpenAI's advanced coding workflows", + // 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-codex-mini + { + name: "gpt-5.1-codex-mini", + displayName: "GPT 5.1 Codex Mini", + description: "OpenAI's compact and efficient coding 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: 2, + }, + // https://platform.openai.com/docs/models/gpt-5 { name: "gpt-5", @@ -44,6 +70,18 @@ export const MODEL_OPTIONS: Record = { temperature: 1, dollarSigns: 3, }, + // https://platform.openai.com/docs/models/gpt-5-codex + { + name: "gpt-5-codex", + displayName: "GPT 5 Codex", + description: "OpenAI's flagship model optimized for coding", + // 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-mini { name: "gpt-5-mini", @@ -297,6 +335,33 @@ export const MODEL_OPTIONS: Record = { }, ], azure: [ + { + name: "gpt-5.1", + displayName: "GPT-5.1", + description: "Azure OpenAI GPT-5.1 model", + // See OpenAI comment above + // maxOutputTokens: 128_000, + contextWindow: 400_000, + temperature: 1, + }, + { + name: "gpt-5.1-codex", + displayName: "GPT-5.1 Codex", + description: "Azure OpenAI GPT-5.1 Codex model", + // See OpenAI comment above + // maxOutputTokens: 128_000, + contextWindow: 400_000, + temperature: 1, + }, + { + name: "gpt-5.1-codex-mini", + displayName: "GPT-5.1 Codex Mini", + description: "Azure OpenAI GPT-5.1 Codex Mini model", + // See OpenAI comment above + // maxOutputTokens: 128_000, + contextWindow: 400_000, + temperature: 1, + }, { name: "gpt-5-codex", displayName: "GPT-5 Codex",