mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-04 22:49:40 +00:00
Added transcription for Helmholtz and Groq, embeddings for GWDG, and fixed Mistral model capabilities (#942)
This commit is contained in:
1 parent
53da222562
commit
2965102c53
13 files changed
+342
-131
No files matched your search
@@ -238,6 +238,14 @@ public static partial class ProviderExtensions
|
||||
Capability.CHAT_COMPLETION_API,
|
||||
];
|
||||
|
||||
//
|
||||
// Ministral models. They need their own block because their names do not contain
|
||||
// "mistral" as a substring, so the block below never sees them. Only Ministral 3 accepts
|
||||
// images, the 2024 models are text only, which is why the release date decides here too:
|
||||
//
|
||||
if (modelName.IndexOf("ministral") is not -1)
|
||||
return BuildMistralCapabilities(GetMistralReleaseDate(modelName, MINISTRAL_LATEST), MINISTRAL_VISION_SINCE, MISTRAL_REASONING_NEVER);
|
||||
|
||||
//
|
||||
// Mistral models:
|
||||
//
|
||||
@@ -286,19 +294,6 @@ public static partial class ProviderExtensions
|
||||
Capability.CHAT_COMPLETION_API,
|
||||
];
|
||||
|
||||
if (modelName.IndexOf("mistral-small-4") is not -1)
|
||||
return
|
||||
[
|
||||
Capability.TEXT_INPUT,
|
||||
Capability.MULTIPLE_IMAGE_INPUT,
|
||||
Capability.TEXT_OUTPUT,
|
||||
|
||||
Capability.OPTIONAL_REASONING,
|
||||
|
||||
Capability.FUNCTION_CALLING,
|
||||
Capability.CHAT_COMPLETION_API,
|
||||
];
|
||||
|
||||
if (modelName.IndexOf("mistral-small-3") is not -1 ||
|
||||
modelName.IndexOf("mistral-small-4") is not -1)
|
||||
return
|
||||
@@ -472,11 +467,18 @@ public static partial class ProviderExtensions
|
||||
//
|
||||
if (modelName.IndexOf("glm") is not -1)
|
||||
{
|
||||
//
|
||||
// Both version checks below accept a hyphen as the version separator as well:
|
||||
// Mistral serves these models as glm-5-2 and zai-glm-5-2, while everybody else
|
||||
// writes the version with a dot.
|
||||
//
|
||||
|
||||
// GLM 5.3 uses forced thinking: the reasoning effort can be lowered, but
|
||||
// reasoning cannot be turned off. This check must stay in front of the
|
||||
// vision check below, because quantized builds such as GLM-5.3-Flash-NVFP4
|
||||
// contain a "v" and would be misread as a vision model:
|
||||
if (modelName.IndexOf("glm-5.3") is not -1)
|
||||
if (modelName.IndexOf("glm-5.3") is not -1 ||
|
||||
modelName.IndexOf("glm-5-3") is not -1)
|
||||
return
|
||||
[
|
||||
Capability.TEXT_INPUT, Capability.MULTIPLE_IMAGE_INPUT,
|
||||
@@ -486,7 +488,8 @@ public static partial class ProviderExtensions
|
||||
Capability.CHAT_COMPLETION_API,
|
||||
];
|
||||
|
||||
if (modelName.IndexOf("glm-5.2") is not -1)
|
||||
if (modelName.IndexOf("glm-5.2") is not -1 ||
|
||||
modelName.IndexOf("glm-5-2") is not -1)
|
||||
return
|
||||
[
|
||||
Capability.TEXT_INPUT,
|
||||
|
||||
Reference in new issue
Block a user