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

@@ -176,7 +176,7 @@ public class ProviderGoogle() : BaseProvider(LLMProviders.GOOGLE, new Uri("https
//
..result.Models.Where(model =>
model.Id.StartsWith("gemini-", StringComparison.OrdinalIgnoreCase) &&
model.IsChatModel())
model.IsChatModel(this.Provider))
.Select(this.WithDisplayNameFallback)
]
};
@@ -195,7 +195,7 @@ public class ProviderGoogle() : BaseProvider(LLMProviders.GOOGLE, new Uri("https
{
Models =
[
..result.Models.Where(model => model.IsEmbeddingModel())
..result.Models.Where(model => model.IsEmbeddingModel(this.Provider))
.Select(this.WithDisplayNameFallback)
]
};