{{ 'Copilot.Copilot' | translate: {Default: 'Copilot'} }} @if (copilotEngine?.name) { :{{copilotEngine.name}} } Beta
@if (role()) { {{roleDetail()?.title}} } @if (conversations()) { }
@for (conversation of (copilotEnabled() ? conversations() : _mockConversations); track $index; let last = $last) { @if (conversation.command && !conversation.command.hidden) {
/{{conversation.command.name}}
} @for (message of conversation.messages; track message.id) { @switch (message.role) { @case (CopilotChatMessageRoleEnum.Assistant) {
@if (assistantAvatar) { @if ((message.status === 'thinking' || message.status === 'answering') && thinkingAvatar) { } @else { } } @else {
🤖
}
} @case (CopilotChatMessageRoleEnum.User) {
@if (message.templateRef) { } @else { @if (message.data) { } @else {
@if (showTokenizer$() && message.content) { }
{{ message.content }}
@if (editingMessageId() === message.id) {
}
} } @if (message.error) {
{{ message.error }}
}
} @case (CopilotChatMessageRoleEnum.Info) {
{{ message.content }}
} } } @if (interactive && conversation.status === 'interrupted') {
} @if (!last) { } } @if (!conversations()?.length) {
💡{{ 'Copilot.AskAICopilot' | translate: {Default: 'Ask AI Copilot Questions'} }}
@if (roles()) { @for (item of roles(); track $index) { {{item.title}} } }
}
@if (command() || context()) {
@if (command()) { {{command().name}} } @if (context()) { {{context().caption || context().key}} } @if (command()) { {{command().description}} }
@for (example of examples(); track example.text) { {{example.text}} }
}
@if (promptCompletion()) {
{{prompt()}} {{promptCompletion()}}
}
@if (loadingContext$ | async) { } @else if (filteredContextItems()) {
{{item.caption}} {{item.key}}
} @for (command of filteredCommands(); track command.prompt) { /{{command.name}} @if (command.alias) { /{{command.alias}} } @if (command.example) {
{{command.example}}
} @else { {{command.description}} }
}
@if (answering()) { } @else { }
@if (!copilotEnabled()) { }
{{ 'Copilot.Options' | translate: {Default: 'Options'} }}
@if (canListModels()) { @if (refreshingModels()) { } @else { } }
@for (model of models(); track model.id) { {{model.name}} } {{ 'Copilot.Interactive' | translate: {Default: 'Interactive'} }} {{ 'Copilot.Verbose' | translate: {Default: 'Verbose'} }}
@if (loadingContext$ | async) { } @else if (filteredContextMenuItems()) { }