Removed the embedding feature from GWDG, since there is no embedding model right now

This commit is contained in:
Thorsten Sommer 2025-02-26 15:34:00 +01:00
parent bca42f4a84
commit d65022e72b
No known key found for this signature in database
GPG Key ID: B0B7E2FC074BF1F5
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ public sealed class ProviderGWDG(ILogger logger) : BaseProvider("https://chat-ai
public override async Task<IEnumerable<Model>> GetEmbeddingModels(string? apiKeyProvisional = null, CancellationToken token = default)
{
var models = await this.LoadModels(token, apiKeyProvisional);
return models.Where(model => model.Id.StartsWith("e5-mistral-7b-instruct", StringComparison.InvariantCultureIgnoreCase));
return models.Where(model => model.Id.StartsWith("e5-", StringComparison.InvariantCultureIgnoreCase));
}
#endregion

View File

@ -93,7 +93,6 @@ public static class LLMProvidersExtensions
LLMProviders.MISTRAL => true,
LLMProviders.GOOGLE => true,
LLMProviders.HELMHOLTZ => true,
LLMProviders.GWDG => true,
//
// Providers that do not support embeddings:
@ -102,6 +101,7 @@ public static class LLMProvidersExtensions
LLMProviders.ANTHROPIC => false,
LLMProviders.FIREWORKS => false,
LLMProviders.X => false,
LLMProviders.GWDG => false,
//
// Self-hosted providers are treated as a special case anyway.