@page "/chat"
@attribute [Authorize(Roles = "Administrator,Chat")]
@inject IChatService ChatService
@inject IOllamaService OllamaService
@inject OllamaSettings Settings
@inject ISettingsService SettingsService
@inject IAuthService AuthService
@inject NavigationManager Navigation
@inject IJSRuntime JS
@rendermode InteractiveServer
Chat
@if (_showSettings)
{
}
@if (_messages.Count == 0)
{
Noch keine Nachrichten. Stelle eine Frage.
}
@foreach (var msg in _messages)
{
A
@MarkdownToHtml(msg.AssistantResponse)
}
@if (_isBusy)
{
}
@if (!string.IsNullOrEmpty(_error))
{
@_error
}
@code {
private List