From 928cf2c73752a23fe3fc026bbf3957c5c80d5604 Mon Sep 17 00:00:00 2001 From: Minipeps Date: Mon, 14 Apr 2025 17:41:16 +0200 Subject: [PATCH] feat: add support for Mistral models in toolSupport.ts --- core/llm/toolSupport.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/core/llm/toolSupport.ts b/core/llm/toolSupport.ts index 3d0d72cc8..de5566ff1 100644 --- a/core/llm/toolSupport.ts +++ b/core/llm/toolSupport.ts @@ -72,6 +72,17 @@ export const PROVIDER_TOOL_SUPPORT: Record< return true; } }, + mistral: (model) => { + // https://docs.mistral.ai/capabilities/function_calling/ + return [ + "codestral", + "mistral-large", + "mistral-small", + "pixtral", + "ministral", + "mistral-nemo" + ].some((part) => model.toLowerCase().includes(part)); + }, // https://ollama.com/search?c=tools ollama: (model) => { let modelName = "";