Skip to content

Commit 21e9d24

Browse files
authored
feat: add new models and update configurations for vscode-lm (#7201)
1 parent b06005d commit 21e9d24

File tree

1 file changed

+42
-6
lines changed

1 file changed

+42
-6
lines changed

packages/types/src/providers/vscode-llm.ts

Lines changed: 42 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,18 @@ export const vscodeLlmModels = {
101101
supportsToolCalling: true,
102102
maxInputTokens: 81638,
103103
},
104+
"claude-4-sonnet": {
105+
contextWindow: 128000,
106+
supportsImages: true,
107+
supportsPromptCache: false,
108+
inputPrice: 0,
109+
outputPrice: 0,
110+
family: "claude-sonnet-4",
111+
version: "claude-sonnet-4",
112+
name: "Claude Sonnet 4",
113+
supportsToolCalling: true,
114+
maxInputTokens: 111836,
115+
},
104116
"gemini-2.0-flash-001": {
105117
contextWindow: 127827,
106118
supportsImages: true,
@@ -114,7 +126,7 @@ export const vscodeLlmModels = {
114126
maxInputTokens: 127827,
115127
},
116128
"gemini-2.5-pro": {
117-
contextWindow: 63830,
129+
contextWindow: 128000,
118130
supportsImages: true,
119131
supportsPromptCache: false,
120132
inputPrice: 0,
@@ -123,10 +135,10 @@ export const vscodeLlmModels = {
123135
version: "gemini-2.5-pro-preview-03-25",
124136
name: "Gemini 2.5 Pro (Preview)",
125137
supportsToolCalling: true,
126-
maxInputTokens: 63830,
138+
maxInputTokens: 108637,
127139
},
128140
"o4-mini": {
129-
contextWindow: 111446,
141+
contextWindow: 128000,
130142
supportsImages: false,
131143
supportsPromptCache: false,
132144
inputPrice: 0,
@@ -135,10 +147,10 @@ export const vscodeLlmModels = {
135147
version: "o4-mini-2025-04-16",
136148
name: "o4-mini (Preview)",
137149
supportsToolCalling: true,
138-
maxInputTokens: 111446,
150+
maxInputTokens: 111452,
139151
},
140152
"gpt-4.1": {
141-
contextWindow: 111446,
153+
contextWindow: 128000,
142154
supportsImages: true,
143155
supportsPromptCache: false,
144156
inputPrice: 0,
@@ -147,7 +159,31 @@ export const vscodeLlmModels = {
147159
version: "gpt-4.1-2025-04-14",
148160
name: "GPT-4.1 (Preview)",
149161
supportsToolCalling: true,
150-
maxInputTokens: 111446,
162+
maxInputTokens: 111452,
163+
},
164+
"gpt-5-mini": {
165+
contextWindow: 128000,
166+
supportsImages: true,
167+
supportsPromptCache: false,
168+
inputPrice: 0,
169+
outputPrice: 0,
170+
family: "gpt-5-mini",
171+
version: "gpt-5-mini",
172+
name: "GPT-5 mini (Preview)",
173+
supportsToolCalling: true,
174+
maxInputTokens: 108637,
175+
},
176+
"gpt-5": {
177+
contextWindow: 128000,
178+
supportsImages: true,
179+
supportsPromptCache: false,
180+
inputPrice: 0,
181+
outputPrice: 0,
182+
family: "gpt-5",
183+
version: "gpt-5",
184+
name: "GPT-5 (Preview)",
185+
supportsToolCalling: true,
186+
maxInputTokens: 108637,
151187
},
152188
} as const satisfies Record<
153189
string,

0 commit comments

Comments
 (0)