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

@@ -32,7 +32,7 @@ public static partial class ProviderExtensions
var separatorIndex = model.Id.IndexOf('/');
var vendor = separatorIndex is -1 ? string.Empty : model.Id[..separatorIndex].ToLowerInvariant();
var bareModel = separatorIndex is -1 ? model : model with { Id = model.Id[(separatorIndex + 1)..] };
var bareModelName = bareModel.Id.ToLowerInvariant().AsSpan();
var bareModelName = NormalizeModelId(bareModel.Id).AsSpan();
var capabilities = vendor switch
{