mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 06:18:00 +00:00
Keep non-chat models out of the chat lists
This commit is contained in:
11 files changed
+111
-5
No files matched your search
@@ -79,7 +79,12 @@ public sealed class ProviderX() : BaseProvider(LLMProviders.X, new Uri("https://
|
||||
var result = await this.LoadModels(SecretStoreType.LLM_PROVIDER, ["grok-"], apiKeyProvisional, token);
|
||||
return result with
|
||||
{
|
||||
Models = [..result.Models.Where(n => !n.Id.Contains("-image", StringComparison.OrdinalIgnoreCase))]
|
||||
//
|
||||
// Asking what a model is made for rather than testing its name for a word. The word was
|
||||
// "-image", which said nothing about grok-imagine-video: that one made films and stood
|
||||
// in the list of things to chat with.
|
||||
//
|
||||
Models = [..result.Models.Where(model => model.IsChatModel())]
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user