@using AIStudio.Chat @inherits MSGComponentBase @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("System Prompt") @T("Are you unsure which system prompt to use? You might start with the default system prompt that AI Studio uses for all chats.") @T("Use the default system prompt") @T("Using some chat templates in tandem with profiles might cause issues. Therefore, you might prohibit the usage of profiles here.") @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() @switch(context.Content) { case ContentText textContent: break; case ContentImage { SourceType: ContentImageSource.URL or ContentImageSource.LOCAL_PATH } imageContent: break; default: @T("Unsupported content type") break; } @if (!this.isInlineEditOnGoing) { } @foreach (var role in ChatRoles.ChatTemplateRoles()) { @role.ToChatTemplateName() } @switch(context.Content) { case ContentText textContent: break; default: @T("Only text content is supported in the editing mode yet.") break; } @if (!this.isInlineEditOnGoing) { @T("Add a message") } @T("Cancel") @if (!this.isInlineEditOnGoing) { @if (this.IsEditing) { @T("Update") } else { @T("Add") } }