mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-13 03:53:47 +00:00
Stop guessing a model's kind from its name at Google, Mistral, and xAI
This commit is contained in:
3 files changed
+30
-20
No files matched your search
@@ -93,12 +93,13 @@ 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.IsChatModel(this.Provider))
|
||||
//
|
||||
// Codestral is a fill-in-the-middle model, which we cannot use for chats. Its own
|
||||
// family says so now, bound to this provider, so the word "code" no longer has to
|
||||
// be tested for here -- and testing for it never reached mistral-code-fim-latest,
|
||||
// which does the same job under a name that begins differently.
|
||||
//
|
||||
..modelResponse.Models.Where(n => n.IsChatModel(this.Provider))
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user