Renamed method ProvideEmbeddings to ProvideEmbeddingAPI

This commit is contained in:
Thorsten Sommer 2026-01-08 17:18:34 +01:00
parent c3dae6f94e
commit c9b257a408
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@
<MudSelect @bind-Value="@this.DataLLMProvider" Label="@T("Provider")" Class="mb-3" OpenIcon="@Icons.Material.Filled.AccountBalance" AdornmentColor="Color.Info" Adornment="Adornment.Start" Validation="@this.providerValidation.ValidatingProvider"> <MudSelect @bind-Value="@this.DataLLMProvider" Label="@T("Provider")" Class="mb-3" OpenIcon="@Icons.Material.Filled.AccountBalance" AdornmentColor="Color.Info" Adornment="Adornment.Start" Validation="@this.providerValidation.ValidatingProvider">
@foreach (LLMProviders provider in Enum.GetValues(typeof(LLMProviders))) @foreach (LLMProviders provider in Enum.GetValues(typeof(LLMProviders)))
{ {
if (provider.ProvideEmbeddings() || provider is LLMProviders.NONE) if (provider.ProvideEmbeddingAPI() || provider is LLMProviders.NONE)
{ {
<MudSelectItem Value="@provider"> <MudSelectItem Value="@provider">
@provider.ToName() @provider.ToName()

View File

@ -110,7 +110,7 @@ public static class LLMProvidersExtensions
/// </summary> /// </summary>
/// <param name="llmProvider">The provider to check.</param> /// <param name="llmProvider">The provider to check.</param>
/// <returns>True if the provider supports embeddings; otherwise, false.</returns> /// <returns>True if the provider supports embeddings; otherwise, false.</returns>
public static bool ProvideEmbeddings(this LLMProviders llmProvider) => llmProvider switch public static bool ProvideEmbeddingAPI(this LLMProviders llmProvider) => llmProvider switch
{ {
// //
// Providers that support embeddings: // Providers that support embeddings: