improvement(copilot): add gpt5.1 and codex (#2092)

This commit is contained in:
Siddharth Ganesan
2025-11-21 11:39:27 -08:00
committed by GitHub
parent ddd3219126
commit 3be57aff8f
6 changed files with 53 additions and 12 deletions

View File

@@ -43,6 +43,12 @@ const ChatMessageSchema = z.object({
'gpt-5',
'gpt-5-medium',
'gpt-5-high',
'gpt-5.1-fast',
'gpt-5.1',
'gpt-5.1-medium',
'gpt-5.1-high',
'gpt-5-codex',
'gpt-5.1-codex',
'gpt-4o',
'gpt-4.1',
'o3',

View File

@@ -12,8 +12,14 @@ const DEFAULT_ENABLED_MODELS: Record<string, boolean> = {
'gpt-4.1': false,
'gpt-5-fast': false,
'gpt-5': true,
'gpt-5-medium': true,
'gpt-5-medium': false,
'gpt-5-high': false,
'gpt-5.1-fast': false,
'gpt-5.1': true,
'gpt-5.1-medium': true,
'gpt-5.1-high': false,
'gpt-5-codex': false,
'gpt-5.1-codex': true,
o3: true,
'claude-4-sonnet': false,
'claude-4.5-haiku': true,

View File

@@ -20,16 +20,21 @@ export const MENTION_OPTIONS = [
* Model configuration options
*/
export const MODEL_OPTIONS = [
// { value: 'claude-4-sonnet', label: 'claude-4-sonnet' },
{ value: 'claude-4.5-sonnet', label: 'claude-4.5-sonnet' },
{ value: 'claude-4.5-haiku', label: 'claude-4.5-haiku' },
{ value: 'claude-4.1-opus', label: 'claude-4.1-opus' },
// { value: 'gpt-5-fast', label: 'gpt-5-fast' },
// { value: 'gpt-5', label: 'gpt-5' },
{ value: 'gpt-5-medium', label: 'gpt-5-medium' },
// { value: 'gpt-5-high', label: 'gpt-5-high' },
// { value: 'gpt-4o', label: 'gpt-4o' },
// { value: 'gpt-4.1', label: 'gpt-4.1' },
// { value: 'claude-4-sonnet', label: 'Claude 4 Sonnet' },
{ value: 'claude-4.5-sonnet', label: 'Claude 4.5 Sonnet' },
{ value: 'claude-4.5-haiku', label: 'Claude 4.5 Haiku' },
{ value: 'claude-4.1-opus', label: 'Claude 4.1 Opus' },
// { value: 'gpt-5-fast', label: 'GPT 5 Fast' },
// { value: 'gpt-5', label: 'GPT 5' },
// { value: 'gpt-5.1-fast', label: 'GPT 5.1 Fast' },
// { value: 'gpt-5.1', label: 'GPT 5.1' },
{ value: 'gpt-5.1-medium', label: 'GPT 5.1 Medium' },
// { value: 'gpt-5.1-high', label: 'GPT 5.1 High' },
// { value: 'gpt-5-codex', label: 'GPT 5 Codex' },
{ value: 'gpt-5.1-codex', label: 'GPT 5.1 Codex' },
// { value: 'gpt-5-high', label: 'GPT 5 High' },
// { value: 'gpt-4o', label: 'GPT 4o' },
// { value: 'gpt-4.1', label: 'GPT 4.1' },
{ value: 'o3', label: 'o3' },
] as const

View File

@@ -32,11 +32,17 @@ const logger = createLogger('CopilotSettings')
// { value: 'gpt-4o', label: 'gpt-4o', icon: 'zap' },
// { value: 'gpt-4.1', label: 'gpt-4.1', icon: 'zap' },
// { value: 'gpt-5-fast', label: 'gpt-5-fast', icon: 'zap' },
// { value: 'gpt-5.1-fast', label: 'gpt-5.1-fast', icon: 'zap' },
// // Brain models
// { value: 'gpt-5', label: 'gpt-5', icon: 'brain' },
// { value: 'gpt-5-medium', label: 'gpt-5-medium', icon: 'brain' },
// { value: 'gpt-5.1', label: 'gpt-5.1', icon: 'brain' },
// { value: 'gpt-5.1-medium', label: 'gpt-5.1-medium', icon: 'brain' },
// // BrainCircuit models
// { value: 'gpt-5-high', label: 'gpt-5-high', icon: 'brainCircuit' },
// { value: 'gpt-5.1-high', label: 'gpt-5.1-high', icon: 'brainCircuit' },
// { value: 'gpt-5-codex', label: 'gpt-5-codex', icon: 'brainCircuit' },
// { value: 'gpt-5.1-codex', label: 'gpt-5.1-codex', icon: 'brainCircuit' },
// { value: 'o3', label: 'o3', icon: 'brainCircuit' },
// ]
@@ -58,8 +64,14 @@ const logger = createLogger('CopilotSettings')
// 'gpt-4.1': false,
// 'gpt-5-fast': false,
// 'gpt-5': true,
// 'gpt-5-medium': true,
// 'gpt-5-medium': false,
// 'gpt-5-high': false,
// 'gpt-5.1-fast': false,
// 'gpt-5.1': true,
// 'gpt-5.1-medium': true,
// 'gpt-5.1-high': false,
// 'gpt-5-codex': false,
// 'gpt-5.1-codex': true,
// o3: true,
// 'claude-4-sonnet': false,
// 'claude-4.5-haiku': true,

View File

@@ -72,6 +72,12 @@ export interface SendMessageRequest {
| 'gpt-5'
| 'gpt-5-medium'
| 'gpt-5-high'
| 'gpt-5.1-fast'
| 'gpt-5.1'
| 'gpt-5.1-medium'
| 'gpt-5.1-high'
| 'gpt-5-codex'
| 'gpt-5.1-codex'
| 'gpt-4o'
| 'gpt-4.1'
| 'o3'

View File

@@ -66,6 +66,12 @@ export interface CopilotState {
| 'gpt-5'
| 'gpt-5-medium'
| 'gpt-5-high'
| 'gpt-5.1-fast'
| 'gpt-5.1'
| 'gpt-5.1-medium'
| 'gpt-5.1-high'
| 'gpt-5-codex'
| 'gpt-5.1-codex'
| 'gpt-4o'
| 'gpt-4.1'
| 'o3'