feat: add support for Mistral models in toolSupport.ts
This commit is contained in:
parent
87ad955b3b
commit
928cf2c737
1 changed files with 11 additions and 0 deletions
|
|
@ -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 = "";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue