mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-12 05:21:36 +00:00
22 lines
585 B
C#
22 lines
585 B
C#
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();
|
|
}
|