Answer the model kind from the registry

This commit is contained in:
Thorsten Sommer committed 2026-09-12 14:22:21 +02:00
1 parent 51613e3748
commit 849f072f3e
18 files changed
+77 -310

No files matched your search

@@ -97,7 +97,7 @@ public sealed class ProviderMistral() : BaseProvider(LLMProviders.MISTRAL, new U
// kind detection:
..modelResponse.Models.Where(n =>
!n.Id.StartsWith("code", StringComparison.OrdinalIgnoreCase) &&
n.IsChatModel())
n.IsChatModel(this.Provider))
]
};
}
@@ -111,7 +111,7 @@ public sealed class ProviderMistral() : BaseProvider(LLMProviders.MISTRAL, new U
return modelResponse with
{
Models = [..modelResponse.Models.Where(n => n.IsEmbeddingModel())]
Models = [..modelResponse.Models.Where(n => n.IsEmbeddingModel(this.Provider))]
};
}