AI-Studio/app/MindWork AI Studio/Dialogs/EmbeddingResultDialog.razor.cs

22 lines
585 B
C#
Raw Normal View History

2026-02-05 16:27:11 +00:00
using AIStudio.Components;
using Microsoft.AspNetCore.Components;
namespace AIStudio.Dialogs;
public partial class EmbeddingResultDialog : MSGComponentBase
{
[CascadingParameter]
private IMudDialogInstance MudDialog { get; set; } = null!;
[Parameter]
public string ResultText { get; set; } = string.Empty;
[Parameter]
public string ResultLabel { get; set; } = string.Empty;
private string ResultLabelText => string.IsNullOrWhiteSpace(this.ResultLabel) ? T("Embedding Vector") : this.ResultLabel;
private void Close() => this.MudDialog.Close();
}