Normalize model IDs before matching capabilities

This commit is contained in:
Thorsten Sommer committed 2026-09-10 21:52:09 +02:00
1 parent e64c51bd57
commit 954012936f
10 files changed
+92 -19

No files matched your search

@@ -6,7 +6,7 @@ public static partial class ProviderExtensions
{
private static List<Capability> GetModelCapabilitiesPerplexity(Model model)
{
var modelName = model.Id.ToLowerInvariant().AsSpan();
var modelName = NormalizeModelId(model.Id).AsSpan();
if(modelName.IndexOf("reasoning") is not -1 ||
modelName.IndexOf("deep-research") is not -1)