@using AIStudio.Chat @using MudBlazor.Extensions @inherits MSGComponentBase @inject ISnackbar Snackbar @T("Create your custom chat template to tailor the LLM's behavior for specific tasks or domains. Define a custom system prompt and provide example exchanges to design an AI experience perfectly suited to your requirements.") @T("The name of the chat template is mandatory. Each chat template must have a unique name.") @* ReSharper disable once CSharpWarnings::CS8974 *@ @T("Example Exchanges") @T("Add example exchanges (user prompt followed by assistant response) to demonstrate the desired interaction pattern. These examples help the AI understand your expectations by showing it the correct format, style, and content of responses before it receives actual user inputs.") Role Entry Actions @context.Role.ToChatTemplateName() @(context.Content is ContentText textContent ? textContent.Text : context.Content?.ToString()) @foreach (var role in availableRoles) { @role.ToChatTemplateName() } @T("Add additional message") @T("Cancel") @if(this.IsEditing) { @T("Update") } else { @T("Add") }