mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 22:57:59 +00:00
Added IONOS as a provider and unified how providers sort their model lists (#941)
This commit is contained in:
1 parent
edbb75dd9f
commit
53da222562
29 files changed
+410
-50
No files matched your search
@@ -82,9 +82,7 @@ public sealed class ProviderHelmholtz() : BaseProvider(LLMProviders.HELMHOLTZ, n
|
||||
{
|
||||
Models =
|
||||
[
|
||||
..result.Models.Where(model => !model.Id.StartsWith("text-", StringComparison.InvariantCultureIgnoreCase) &&
|
||||
!model.Id.Contains("-embedding", StringComparison.InvariantCultureIgnoreCase)
|
||||
)
|
||||
..result.Models.Where(model => model.IsChatModel())
|
||||
]
|
||||
};
|
||||
}
|
||||
@@ -103,10 +101,7 @@ public sealed class ProviderHelmholtz() : BaseProvider(LLMProviders.HELMHOLTZ, n
|
||||
{
|
||||
Models =
|
||||
[
|
||||
..result.Models.Where(model =>
|
||||
model.Id.Contains("-embedding", StringComparison.InvariantCultureIgnoreCase) ||
|
||||
model.Id.StartsWith("text-", StringComparison.InvariantCultureIgnoreCase) ||
|
||||
model.Id.Contains("gritlm", StringComparison.InvariantCultureIgnoreCase))
|
||||
..result.Models.Where(model => model.IsEmbeddingModel())
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user