From 24e5b78583bd36b5e5a0247269c0804e33706e43 Mon Sep 17 00:00:00 2001 From: Dylan-86 <58813956+Dylan-86@users.noreply.github.com> Date: Tue, 25 Mar 2025 12:09:39 +0100 Subject: [PATCH 1/2] Added more models for agents from openRouter --- .../contrib/void/common/modelCapabilities.ts | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/src/vs/workbench/contrib/void/common/modelCapabilities.ts b/src/vs/workbench/contrib/void/common/modelCapabilities.ts index 88a45939..2a673f68 100644 --- a/src/vs/workbench/contrib/void/common/modelCapabilities.ts +++ b/src/vs/workbench/contrib/void/common/modelCapabilities.ts @@ -44,8 +44,14 @@ export const defaultModelsOfProvider = { 'anthropic/claude-3.7-sonnet', 'anthropic/claude-3.5-sonnet', 'deepseek/deepseek-r1', + 'deepseek/deepseek-r1-zero:free', 'mistralai/codestral-2501', 'qwen/qwen-2.5-coder-32b-instruct', + 'mistralai/mistral-small-3.1-24b-instruct:free', + 'google/gemini-2.0-flash-lite-preview-02-05:free', + 'google/gemini-2.0-pro-exp-02-05:free', + 'google/gemini-2.0-flash-exp:free', + 'google/gemini-flash-1.5-8b-exp' ], groq: [ // https://console.groq.com/docs/models 'qwen-qwq-32b', @@ -554,6 +560,51 @@ const openaiCompatible: ProviderSettings = { // ---------------- OPENROUTER ---------------- const openRouterModelOptions_assumingOpenAICompat = { + 'mistralai/mistral-small-3.1-24b-instruct:free': { + contextWindow: 128_000, // + maxOutputTokens: 128_000, // + cost: { input: 0, output: 0 }, // free model so costs are zero + supportsFIM: false, + supportsTools: 'openai-style', // supports tools (agents) + supportsSystemMessage: 'system-role', + reasoningCapabilities: false, + }, + 'google/gemini-2.0-flash-lite-preview-02-05:free': { + contextWindow: 1_048_576, + maxOutputTokens: null, + cost: { input: 0, output: 0 }, + supportsFIM: false, + supportsTools: 'openai-style', + supportsSystemMessage: 'system-role', + reasoningCapabilities: false, + }, + 'google/gemini-2.0-pro-exp-02-05:free': { + contextWindow: 1_048_576, + maxOutputTokens: null, + cost: { input: 0, output: 0 }, + supportsFIM: false, + supportsTools: 'openai-style', + supportsSystemMessage: 'system-role', + reasoningCapabilities: false, + }, + 'google/gemini-2.0-flash-exp:free': { + contextWindow: 1_048_576, + maxOutputTokens: null, + cost: { input: 0, output: 0 }, + supportsFIM: false, + supportsTools: 'openai-style', + supportsSystemMessage: 'system-role', + reasoningCapabilities: false, + }, + 'google/gemini-flash-1.5-8b-exp': { + contextWindow: 1_048_576, + maxOutputTokens: null, + cost: { input: 0, output: 0 }, + supportsFIM: false, + supportsTools: 'openai-style', + supportsSystemMessage: 'system-role', + reasoningCapabilities: false, + }, 'deepseek/deepseek-r1': { ...openSourceModelOptions_assumingOAICompat.deepseekR1, contextWindow: 128_000, From 329e68ccb17b0fee7c63ce72b84b4c98c48a7dcf Mon Sep 17 00:00:00 2001 From: Andrew Pareles Date: Mon, 7 Apr 2025 03:46:12 -0700 Subject: [PATCH 2/2] merge --- .../contrib/void/common/modelCapabilities.ts | 90 +++++++++---------- 1 file changed, 40 insertions(+), 50 deletions(-) diff --git a/src/vs/workbench/contrib/void/common/modelCapabilities.ts b/src/vs/workbench/contrib/void/common/modelCapabilities.ts index 2a673f68..bca02e1c 100644 --- a/src/vs/workbench/contrib/void/common/modelCapabilities.ts +++ b/src/vs/workbench/contrib/void/common/modelCapabilities.ts @@ -47,11 +47,10 @@ export const defaultModelsOfProvider = { 'deepseek/deepseek-r1-zero:free', 'mistralai/codestral-2501', 'qwen/qwen-2.5-coder-32b-instruct', - 'mistralai/mistral-small-3.1-24b-instruct:free', - 'google/gemini-2.0-flash-lite-preview-02-05:free', - 'google/gemini-2.0-pro-exp-02-05:free', - 'google/gemini-2.0-flash-exp:free', - 'google/gemini-flash-1.5-8b-exp' + // 'mistralai/mistral-small-3.1-24b-instruct:free', + 'google/gemini-2.0-flash-lite-preview-02-05:free', + // 'google/gemini-2.0-pro-exp-02-05:free', + // 'google/gemini-2.0-flash-exp:free', ], groq: [ // https://console.groq.com/docs/models 'qwen-qwq-32b', @@ -560,51 +559,42 @@ const openaiCompatible: ProviderSettings = { // ---------------- OPENROUTER ---------------- const openRouterModelOptions_assumingOpenAICompat = { - 'mistralai/mistral-small-3.1-24b-instruct:free': { - contextWindow: 128_000, // - maxOutputTokens: 128_000, // - cost: { input: 0, output: 0 }, // free model so costs are zero - supportsFIM: false, - supportsTools: 'openai-style', // supports tools (agents) - supportsSystemMessage: 'system-role', - reasoningCapabilities: false, - }, - 'google/gemini-2.0-flash-lite-preview-02-05:free': { - contextWindow: 1_048_576, - maxOutputTokens: null, - cost: { input: 0, output: 0 }, - supportsFIM: false, - supportsTools: 'openai-style', - supportsSystemMessage: 'system-role', - reasoningCapabilities: false, - }, - 'google/gemini-2.0-pro-exp-02-05:free': { - contextWindow: 1_048_576, - maxOutputTokens: null, - cost: { input: 0, output: 0 }, - supportsFIM: false, - supportsTools: 'openai-style', - supportsSystemMessage: 'system-role', - reasoningCapabilities: false, - }, - 'google/gemini-2.0-flash-exp:free': { - contextWindow: 1_048_576, - maxOutputTokens: null, - cost: { input: 0, output: 0 }, - supportsFIM: false, - supportsTools: 'openai-style', - supportsSystemMessage: 'system-role', - reasoningCapabilities: false, - }, - 'google/gemini-flash-1.5-8b-exp': { - contextWindow: 1_048_576, - maxOutputTokens: null, - cost: { input: 0, output: 0 }, - supportsFIM: false, - supportsTools: 'openai-style', - supportsSystemMessage: 'system-role', - reasoningCapabilities: false, - }, + 'mistralai/mistral-small-3.1-24b-instruct:free': { + contextWindow: 128_000, + maxOutputTokens: null, + cost: { input: 0, output: 0 }, + supportsFIM: false, + supportsTools: 'openai-style', + supportsSystemMessage: 'system-role', + reasoningCapabilities: false, + }, + 'google/gemini-2.0-flash-lite-preview-02-05:free': { + contextWindow: 1_048_576, + maxOutputTokens: null, + cost: { input: 0, output: 0 }, + supportsFIM: false, + supportsTools: 'openai-style', + supportsSystemMessage: 'system-role', + reasoningCapabilities: false, + }, + 'google/gemini-2.0-pro-exp-02-05:free': { + contextWindow: 1_048_576, + maxOutputTokens: null, + cost: { input: 0, output: 0 }, + supportsFIM: false, + supportsTools: 'openai-style', + supportsSystemMessage: 'system-role', + reasoningCapabilities: false, + }, + 'google/gemini-2.0-flash-exp:free': { + contextWindow: 1_048_576, + maxOutputTokens: null, + cost: { input: 0, output: 0 }, + supportsFIM: false, + supportsTools: 'openai-style', + supportsSystemMessage: 'system-role', + reasoningCapabilities: false, + }, 'deepseek/deepseek-r1': { ...openSourceModelOptions_assumingOAICompat.deepseekR1, contextWindow: 128_000,