mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-15 22:21:37 +00:00
Renamed method
This commit is contained in:
parent
21ceb70fd7
commit
b38b96c9f6
@ -47,7 +47,7 @@
|
|||||||
<MudSelect @bind-Value="@this.DataHost" Label="@T("Host")" Class="mb-3" OpenIcon="@Icons.Material.Filled.ExpandMore" AdornmentColor="Color.Info" Adornment="Adornment.Start" Validation="@this.providerValidation.ValidatingHost">
|
<MudSelect @bind-Value="@this.DataHost" Label="@T("Host")" Class="mb-3" OpenIcon="@Icons.Material.Filled.ExpandMore" AdornmentColor="Color.Info" Adornment="Adornment.Start" Validation="@this.providerValidation.ValidatingHost">
|
||||||
@foreach (Host host in Enum.GetValues(typeof(Host)))
|
@foreach (Host host in Enum.GetValues(typeof(Host)))
|
||||||
{
|
{
|
||||||
if (host.AreEmbeddingsSupported())
|
if (host.IsEmbeddingSupported())
|
||||||
{
|
{
|
||||||
<MudSelectItem Value="@host">
|
<MudSelectItem Value="@host">
|
||||||
@host.Name()
|
@host.Name()
|
||||||
|
|||||||
@ -24,7 +24,7 @@ public static class HostExtensions
|
|||||||
_ => "chat/completions",
|
_ => "chat/completions",
|
||||||
};
|
};
|
||||||
|
|
||||||
public static bool AreEmbeddingsSupported(this Host host)
|
public static bool IsEmbeddingSupported(this Host host)
|
||||||
{
|
{
|
||||||
switch (host)
|
switch (host)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user