Skip to content

Commit e9915ce

Browse files
committed
feat: add gpt-5.1 and gpt-5.2 models to modelCapabilities.ts
Signed-off-by: Takuma IMAMURA <209989118+hyperfinitism@users.noreply.github.com>
1 parent 1ee8980 commit e9915ce

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

src/vs/workbench/contrib/void/common/modelCapabilities.ts

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ export const defaultProviderSettings = {
7272

7373

7474
export const defaultModelsOfProvider = {
75-
openAI: [ // https://platform.openai.com/docs/models/gp
75+
openAI: [ // https://platform.openai.com/docs/models
76+
'gpt-5.2',
77+
'gpt-5.1',
7678
'gpt-4.1',
7779
'gpt-4.1-mini',
7880
'gpt-4.1-nano',
@@ -653,6 +655,24 @@ const openAIModelOptions = { // https://platform.openai.com/docs/pricing
653655
supportsSystemMessage: 'developer-role',
654656
reasoningCapabilities: false,
655657
},
658+
'gpt-5.1': {
659+
contextWindow: 400_000,
660+
reservedOutputTokenSpace: 128_000,
661+
cost: { input: 1.25, cache_read: 0.13, output: 19.00, },
662+
downloadable: false,
663+
supportsFIM: false,
664+
supportsSystemMessage: 'developer-role',
665+
reasoningCapabilities: { supportsReasoning: true, canTurnOffReasoning: false, canIOReasoning: false, reasoningSlider: { type: 'effort_slider', values: ['none', 'low', 'medium', 'high'], default: 'low' } },
666+
},
667+
'gpt-5.2': {
668+
contextWindow: 400_000,
669+
reservedOutputTokenSpace: 128_000,
670+
cost: { input: 1.75, cache_read: 0.18, output: 14.00, },
671+
downloadable: false,
672+
supportsFIM: false,
673+
supportsSystemMessage: 'developer-role',
674+
reasoningCapabilities: { supportsReasoning: true, canTurnOffReasoning: false, canIOReasoning: false, reasoningSlider: { type: 'effort_slider', values: ['none', 'low', 'medium', 'high', 'xhigh'], default: 'low' } },
675+
},
656676
'o1': {
657677
contextWindow: 128_000,
658678
reservedOutputTokenSpace: 100_000,

0 commit comments

Comments
 (0)