Use ToName() for provider display in Embedding dialogs and settings

This commit is contained in:
Thorsten Sommer 2025-04-20 12:39:17 +02:00
parent c6e45c26d6
commit 56e3064e74
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 4 additions and 2 deletions

View File

@ -41,7 +41,7 @@
<RowTemplate> <RowTemplate>
<MudTd>@context.Num</MudTd> <MudTd>@context.Num</MudTd>
<MudTd>@context.Name</MudTd> <MudTd>@context.Name</MudTd>
<MudTd>@context.UsedLLMProvider</MudTd> <MudTd>@context.UsedLLMProvider.ToName()</MudTd>
<MudTd>@this.GetEmbeddingProviderModelName(context)</MudTd> <MudTd>@this.GetEmbeddingProviderModelName(context)</MudTd>
<MudTd> <MudTd>

View File

@ -11,7 +11,9 @@
{ {
if (provider.ProvideEmbeddings()) if (provider.ProvideEmbeddings())
{ {
<MudSelectItem Value="@provider">@provider</MudSelectItem> <MudSelectItem Value="@provider">
@provider.ToName()
</MudSelectItem>
} }
} }
</MudSelect> </MudSelect>