@if (llmIndex === undefined) {

Choose an LLM

@for (name of llmNames; track name; let index = $index) { } } @else {

Chat with {{ llmNames[llmIndex] }}

@for (entry of history; track entry; let i = $index) {
@if (entry.role === 'user') {
{{ entry.text }}
} @if (entry.role === 'model') {
@if (entry.text) { }
}
} @if (error) {
{{ error }}
}
Chat input. Press Enter to submit (Shift+Enter for line break) @if (loading) { }
}