Skip to content

Commit 9888b38

Browse files
committed
Adds GPT-5.1 model support
1 parent b10a7e5 commit 9888b38

File tree

1 file changed

+24
-11
lines changed

1 file changed

+24
-11
lines changed

src/plus/ai/models/model.ts

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,19 @@ export interface AIProviderDescriptorWithType<T extends AIProviders = AIProvider
5959
}
6060

6161
export const openAIModels = <T extends OpenAIProviders>(provider: AIProviderDescriptor<T>): AIModel<T>[] => [
62+
{
63+
id: 'gpt-5.1',
64+
name: 'GPT-5.1',
65+
maxTokens: { input: 400000, output: 128000 },
66+
provider: provider,
67+
},
68+
{
69+
id: 'gpt-5.1-2025-11-13',
70+
name: 'GPT-5.1 (2025-11-13)',
71+
maxTokens: { input: 400000, output: 128000 },
72+
provider: provider,
73+
hidden: true,
74+
},
6275
{
6376
id: 'gpt-5',
6477
name: 'GPT-5',
@@ -67,7 +80,7 @@ export const openAIModels = <T extends OpenAIProviders>(provider: AIProviderDesc
6780
},
6881
{
6982
id: 'gpt-5-2025-08-07',
70-
name: 'GPT-5',
83+
name: 'GPT-5 (2025-08-07)',
7184
maxTokens: { input: 400000, output: 128000 },
7285
provider: provider,
7386
hidden: true,
@@ -81,7 +94,7 @@ export const openAIModels = <T extends OpenAIProviders>(provider: AIProviderDesc
8194
},
8295
{
8396
id: 'gpt-5-mini-2025-08-07',
84-
name: 'GPT-5 mini',
97+
name: 'GPT-5 mini (2025-08-07)',
8598
maxTokens: { input: 400000, output: 128000 },
8699
provider: provider,
87100
hidden: true,
@@ -94,7 +107,7 @@ export const openAIModels = <T extends OpenAIProviders>(provider: AIProviderDesc
94107
},
95108
{
96109
id: 'gpt-5-nano-2025-08-07',
97-
name: 'GPT-5 nano',
110+
name: 'GPT-5 nano (2025-08-07)',
98111
maxTokens: { input: 400000, output: 128000 },
99112
provider: provider,
100113
hidden: true,
@@ -216,7 +229,7 @@ export const openAIModels = <T extends OpenAIProviders>(provider: AIProviderDesc
216229
},
217230
{
218231
id: 'o3-mini-2025-01-31',
219-
name: 'o3 mini',
232+
name: 'o3 mini (2025-01-31)',
220233
maxTokens: { input: 200000, output: 100000 },
221234
provider: provider,
222235
temperature: null,
@@ -232,7 +245,7 @@ export const openAIModels = <T extends OpenAIProviders>(provider: AIProviderDesc
232245
},
233246
{
234247
id: 'o1-2024-12-17',
235-
name: 'o1',
248+
name: 'o1 (2024-12-17)',
236249
maxTokens: { input: 200000, output: 100000 },
237250
provider: provider,
238251
temperature: null,
@@ -248,7 +261,7 @@ export const openAIModels = <T extends OpenAIProviders>(provider: AIProviderDesc
248261
},
249262
{
250263
id: 'o1-preview-2024-09-12',
251-
name: 'o1 preview',
264+
name: 'o1 preview (2024-09-12)',
252265
maxTokens: { input: 128000, output: 32768 },
253266
provider: provider,
254267
temperature: null,
@@ -264,7 +277,7 @@ export const openAIModels = <T extends OpenAIProviders>(provider: AIProviderDesc
264277
},
265278
{
266279
id: 'o1-mini-2024-09-12',
267-
name: 'o1 mini',
280+
name: 'o1 mini (2024-09-12)',
268281
maxTokens: { input: 128000, output: 65536 },
269282
provider: provider,
270283
temperature: null,
@@ -278,21 +291,21 @@ export const openAIModels = <T extends OpenAIProviders>(provider: AIProviderDesc
278291
},
279292
{
280293
id: 'gpt-4o-2024-11-20',
281-
name: 'GPT-4o',
294+
name: 'GPT-4o (2024-11-20)',
282295
maxTokens: { input: 128000, output: 16384 },
283296
provider: provider,
284297
hidden: true,
285298
},
286299
{
287300
id: 'gpt-4o-2024-08-06',
288-
name: 'GPT-4o',
301+
name: 'GPT-4o (2024-08-06)',
289302
maxTokens: { input: 128000, output: 16384 },
290303
provider: provider,
291304
hidden: true,
292305
},
293306
{
294307
id: 'gpt-4o-2024-05-13',
295-
name: 'GPT-4o',
308+
name: 'GPT-4o (2024-05-13)',
296309
maxTokens: { input: 128000, output: 4096 },
297310
provider: provider,
298311
hidden: true,
@@ -313,7 +326,7 @@ export const openAIModels = <T extends OpenAIProviders>(provider: AIProviderDesc
313326
},
314327
{
315328
id: 'gpt-4o-mini-2024-07-18',
316-
name: 'GPT-4o mini',
329+
name: 'GPT-4o mini (2024-07-18)',
317330
maxTokens: { input: 128000, output: 16384 },
318331
provider: provider,
319332
hidden: true,

0 commit comments

Comments
 (0)