mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-05 20:29:40 +00:00
Normalize model IDs before matching capabilities
This commit is contained in:
10 files changed
+92
-19
No files matched your search
@@ -6,7 +6,7 @@ public static partial class ProviderExtensions
|
||||
{
|
||||
private static List<Capability> GetModelCapabilitiesOpenAI(Model model)
|
||||
{
|
||||
var modelName = model.Id.ToLowerInvariant().AsSpan();
|
||||
var modelName = NormalizeModelId(model.Id).AsSpan();
|
||||
|
||||
if (modelName is "gpt-4o-search-preview")
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user