mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-09 00:29:40 +00:00
Updated model capabilities across all providers (#940)
This commit is contained in:
1 parent
c9b7f224cc
commit
edbb75dd9f
10 files changed
+275
-256
No files matched your search
@@ -8,21 +8,31 @@ public static partial class ProviderExtensions
|
||||
{
|
||||
var modelName = model.Id.ToLowerInvariant().AsSpan();
|
||||
|
||||
// The reasoner alias points to the thinking mode of the current flash model:
|
||||
if(modelName.IndexOf("reasoner") is not -1)
|
||||
return
|
||||
[
|
||||
Capability.TEXT_INPUT,
|
||||
Capability.TEXT_OUTPUT,
|
||||
|
||||
Capability.ALWAYS_REASONING,
|
||||
|
||||
Capability.ALWAYS_REASONING, Capability.FUNCTION_CALLING,
|
||||
Capability.CHAT_COMPLETION_API,
|
||||
];
|
||||
|
||||
return
|
||||
[
|
||||
Capability.TEXT_INPUT,
|
||||
Capability.TEXT_OUTPUT,
|
||||
Capability.CHAT_COMPLETION_API,
|
||||
];
|
||||
|
||||
// The chat alias points to the non-thinking mode of the same model:
|
||||
if(modelName.IndexOf("chat") is not -1)
|
||||
return
|
||||
[
|
||||
Capability.TEXT_INPUT,
|
||||
Capability.TEXT_OUTPUT,
|
||||
|
||||
Capability.FUNCTION_CALLING,
|
||||
Capability.CHAT_COMPLETION_API,
|
||||
];
|
||||
|
||||
// DeepSeek publishes its models as open weights and offers them under the same
|
||||
// names here. Instead of maintaining a second copy of those rules, we reuse the
|
||||
// ones for open source models:
|
||||
return GetModelCapabilitiesOpenSource(model);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user