@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 an example conversation 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("Use the default system prompt") @T("Example Conversation") @T("Add messages of an example conversation (user prompt followed by assistant prompt) 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.") @T("Role") @T("Entry") @T("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") }