mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 22:18:00 +00:00
Added IONOS as a provider and unified how providers sort their model lists (#941)
This commit is contained in:
1 parent
edbb75dd9f
commit
53da222562
29 files changed
+410
-50
No files matched your search
@@ -91,10 +91,12 @@ public sealed class ProviderMistral() : BaseProvider(LLMProviders.MISTRAL, new U
|
||||
{
|
||||
Models =
|
||||
[
|
||||
// Codestral is a fill-in-the-middle model, which we cannot use for chats. That is
|
||||
// specific to Mistral's catalog, which is why it is not part of the shared model
|
||||
// kind detection:
|
||||
..modelResponse.Models.Where(n =>
|
||||
!n.Id.StartsWith("code", StringComparison.OrdinalIgnoreCase) &&
|
||||
!n.Id.Contains("embed", StringComparison.OrdinalIgnoreCase) &&
|
||||
!n.Id.Contains("moderation", StringComparison.OrdinalIgnoreCase))
|
||||
n.IsChatModel())
|
||||
]
|
||||
};
|
||||
}
|
||||
@@ -108,7 +110,7 @@ public sealed class ProviderMistral() : BaseProvider(LLMProviders.MISTRAL, new U
|
||||
|
||||
return modelResponse with
|
||||
{
|
||||
Models = [..modelResponse.Models.Where(n => n.Id.Contains("embed", StringComparison.InvariantCulture))]
|
||||
Models = [..modelResponse.Models.Where(n => n.IsEmbeddingModel())]
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user