Skip to content

Commit 102ff61

Browse files
committed
feat: add VS Code LLM models and configuration
1 parent 19a3820 commit 102ff61

File tree

1 file changed

+183
-0
lines changed

1 file changed

+183
-0
lines changed

src/shared/api.ts

Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,3 +1179,186 @@ export const xaiModels = {
11791179
description: "xAI's Grok Beta model (legacy) with 131K context window",
11801180
},
11811181
} as const satisfies Record<string, ModelInfo>
1182+
1183+
export type VscodeLlmModelId = keyof typeof vscodeLlmModels
1184+
export const vscodeLlmDefaultModelId: VscodeLlmModelId = "claude-3.5-sonnet"
1185+
export const vscodeLlmModels = {
1186+
"gpt-3.5-turbo": {
1187+
contextWindow: 12114,
1188+
supportsImages: false,
1189+
supportsPromptCache: false,
1190+
inputPrice: 0,
1191+
outputPrice: 0,
1192+
family: "gpt-3.5-turbo",
1193+
version: "gpt-3.5-turbo-0613",
1194+
name: "GPT 3.5 Turbo",
1195+
supportsToolCalling: true,
1196+
maxInputTokens: 12114,
1197+
},
1198+
"gpt-4o-mini": {
1199+
contextWindow: 12115,
1200+
supportsImages: false,
1201+
supportsPromptCache: false,
1202+
inputPrice: 0,
1203+
outputPrice: 0,
1204+
family: "gpt-4o-mini",
1205+
version: "gpt-4o-mini-2024-07-18",
1206+
name: "GPT-4o mini",
1207+
supportsToolCalling: true,
1208+
maxInputTokens: 12115,
1209+
},
1210+
"gpt-4": {
1211+
contextWindow: 28501,
1212+
supportsImages: false,
1213+
supportsPromptCache: false,
1214+
inputPrice: 0,
1215+
outputPrice: 0,
1216+
family: "gpt-4",
1217+
version: "gpt-4-0613",
1218+
name: "GPT 4",
1219+
supportsToolCalling: true,
1220+
maxInputTokens: 28501,
1221+
},
1222+
"gpt-4-0125-preview": {
1223+
contextWindow: 63826,
1224+
supportsImages: false,
1225+
supportsPromptCache: false,
1226+
inputPrice: 0,
1227+
outputPrice: 0,
1228+
family: "gpt-4-turbo",
1229+
version: "gpt-4-0125-preview",
1230+
name: "GPT 4 Turbo",
1231+
supportsToolCalling: true,
1232+
maxInputTokens: 63826,
1233+
},
1234+
"gpt-4o": {
1235+
contextWindow: 63827,
1236+
supportsImages: true,
1237+
supportsPromptCache: false,
1238+
inputPrice: 0,
1239+
outputPrice: 0,
1240+
family: "gpt-4o",
1241+
version: "gpt-4o-2024-11-20",
1242+
name: "GPT-4o",
1243+
supportsToolCalling: true,
1244+
maxInputTokens: 63827,
1245+
},
1246+
o1: {
1247+
contextWindow: 19827,
1248+
supportsImages: false,
1249+
supportsPromptCache: false,
1250+
inputPrice: 0,
1251+
outputPrice: 0,
1252+
family: "o1-ga",
1253+
version: "o1-2024-12-17",
1254+
name: "o1 (Preview)",
1255+
supportsToolCalling: true,
1256+
maxInputTokens: 19827,
1257+
},
1258+
"o3-mini": {
1259+
contextWindow: 63827,
1260+
supportsImages: false,
1261+
supportsPromptCache: false,
1262+
inputPrice: 0,
1263+
outputPrice: 0,
1264+
family: "o3-mini",
1265+
version: "o3-mini-2025-01-31",
1266+
name: "o3-mini",
1267+
supportsToolCalling: true,
1268+
maxInputTokens: 63827,
1269+
},
1270+
"claude-3.5-sonnet": {
1271+
contextWindow: 81638,
1272+
supportsImages: true,
1273+
supportsPromptCache: false,
1274+
inputPrice: 0,
1275+
outputPrice: 0,
1276+
family: "claude-3.5-sonnet",
1277+
version: "claude-3.5-sonnet",
1278+
name: "Claude 3.5 Sonnet",
1279+
supportsToolCalling: true,
1280+
maxInputTokens: 81638,
1281+
},
1282+
"claude-3.7-sonnet": {
1283+
contextWindow: 89827,
1284+
supportsImages: true,
1285+
supportsPromptCache: false,
1286+
inputPrice: 0,
1287+
outputPrice: 0,
1288+
family: "claude-3.7-sonnet",
1289+
version: "claude-3.7-sonnet",
1290+
name: "Claude 3.7 Sonnet",
1291+
supportsToolCalling: true,
1292+
maxInputTokens: 89827,
1293+
},
1294+
"claude-3.7-sonnet-thought": {
1295+
contextWindow: 89827,
1296+
supportsImages: true,
1297+
supportsPromptCache: false,
1298+
inputPrice: 0,
1299+
outputPrice: 0,
1300+
family: "claude-3.7-sonnet-thought",
1301+
version: "claude-3.7-sonnet-thought",
1302+
name: "Claude 3.7 Sonnet Thinking",
1303+
supportsToolCalling: false,
1304+
maxInputTokens: 89827,
1305+
thinking: true,
1306+
},
1307+
"gemini-2.0-flash-001": {
1308+
contextWindow: 127827,
1309+
supportsImages: true,
1310+
supportsPromptCache: false,
1311+
inputPrice: 0,
1312+
outputPrice: 0,
1313+
family: "gemini-2.0-flash",
1314+
version: "gemini-2.0-flash-001",
1315+
name: "Gemini 2.0 Flash",
1316+
supportsToolCalling: false,
1317+
maxInputTokens: 127827,
1318+
},
1319+
"gemini-2.5-pro": {
1320+
contextWindow: 63830,
1321+
supportsImages: true,
1322+
supportsPromptCache: false,
1323+
inputPrice: 0,
1324+
outputPrice: 0,
1325+
family: "gemini-2.5-pro",
1326+
version: "gemini-2.5-pro-preview-03-25",
1327+
name: "Gemini 2.5 Pro (Preview)",
1328+
supportsToolCalling: true,
1329+
maxInputTokens: 63830,
1330+
},
1331+
"o4-mini": {
1332+
contextWindow: 111446,
1333+
supportsImages: false,
1334+
supportsPromptCache: false,
1335+
inputPrice: 0,
1336+
outputPrice: 0,
1337+
family: "o4-mini",
1338+
version: "o4-mini-2025-04-16",
1339+
name: "o4-mini (Preview)",
1340+
supportsToolCalling: true,
1341+
maxInputTokens: 111446,
1342+
},
1343+
"gpt-4.1": {
1344+
contextWindow: 111446,
1345+
supportsImages: true,
1346+
supportsPromptCache: false,
1347+
inputPrice: 0,
1348+
outputPrice: 0,
1349+
family: "gpt-4.1",
1350+
version: "gpt-4.1-2025-04-14",
1351+
name: "GPT-4.1 (Preview)",
1352+
supportsToolCalling: true,
1353+
maxInputTokens: 111446,
1354+
},
1355+
} as const satisfies Record<
1356+
string,
1357+
ModelInfo & {
1358+
family: string
1359+
version: string
1360+
name: string
1361+
supportsToolCalling: boolean
1362+
maxInputTokens: number
1363+
}
1364+
>

0 commit comments

Comments
 (0)