feat: add new models and update configurations for vscode-lm (#7201)

This commit is contained in:
NaccOll 2025-08-20 04:24:29 +08:00 • committed by GitHub
parent b06005d321
commit 21e9d24ba7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -101,6 +101,18 @@ export const vscodeLlmModels = {
supportsToolCalling: true,
maxInputTokens: 81638,
},
"claude-4-sonnet": {
contextWindow: 128000,
supportsImages: true,
supportsPromptCache: false,
inputPrice: 0,
outputPrice: 0,
family: "claude-sonnet-4",
version: "claude-sonnet-4",
name: "Claude Sonnet 4",
supportsToolCalling: true,
maxInputTokens: 111836,
},
"gemini-2.0-flash-001": {
contextWindow: 127827,
supportsImages: true,
@ -114,7 +126,7 @@ export const vscodeLlmModels = {
maxInputTokens: 127827,
},
"gemini-2.5-pro": {
contextWindow: 63830,
contextWindow: 128000,
supportsImages: true,
supportsPromptCache: false,
inputPrice: 0,
@ -123,10 +135,10 @@ export const vscodeLlmModels = {
version: "gemini-2.5-pro-preview-03-25",
name: "Gemini 2.5 Pro (Preview)",
supportsToolCalling: true,
maxInputTokens: 63830,
maxInputTokens: 108637,
},
"o4-mini": {
contextWindow: 111446,
contextWindow: 128000,
supportsImages: false,
supportsPromptCache: false,
inputPrice: 0,
@ -135,10 +147,10 @@ export const vscodeLlmModels = {
version: "o4-mini-2025-04-16",
name: "o4-mini (Preview)",
supportsToolCalling: true,
maxInputTokens: 111446,
maxInputTokens: 111452,
},
"gpt-4.1": {
contextWindow: 111446,
contextWindow: 128000,
supportsImages: true,
supportsPromptCache: false,
inputPrice: 0,
@ -147,7 +159,31 @@ export const vscodeLlmModels = {
version: "gpt-4.1-2025-04-14",
name: "GPT-4.1 (Preview)",
supportsToolCalling: true,
maxInputTokens: 111446,
maxInputTokens: 111452,
},
"gpt-5-mini": {
contextWindow: 128000,
supportsImages: true,
supportsPromptCache: false,
inputPrice: 0,
outputPrice: 0,
family: "gpt-5-mini",
version: "gpt-5-mini",
name: "GPT-5 mini (Preview)",
supportsToolCalling: true,
maxInputTokens: 108637,
},
"gpt-5": {
contextWindow: 128000,
supportsImages: true,
supportsPromptCache: false,
inputPrice: 0,
outputPrice: 0,
family: "gpt-5",
version: "gpt-5",
name: "GPT-5 (Preview)",
supportsToolCalling: true,
maxInputTokens: 108637,
},
} as const satisfies Record<
string,