mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-15 22:21:37 +00:00
Renamed method ProvideEmbeddings to ProvideEmbeddingAPI
This commit is contained in:
parent
c3dae6f94e
commit
c9b257a408
@ -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()
|
||||||
|
|||||||
@ -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:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user