namespace Lilith.RazorWebGui.Services;public sealed class LilithBootService(LilithChatService chat) : IHostedService{ public Task StartAsync(CancellationToken cancellationToken) => chat.InitializeAsync(cancellationToken); public Task StopAsync(CancellationToken cancellationToken) { chat.Shutdown(); return Task.CompletedTask; }}
Documentation
Lilith.RazorWebGui (Version 4)
ASP.NET Core Razor Pages web UI for Lilith Version 4. Mirrors LilithConsole chat, commands, and logging.
- Model:
LILITH_MODEL(defaultgemma4) - Commands:
exit,/new,/history,/history <n>,/voice <name>(when TTS is enabled)
dotnet run --project Lilith.RazorWebGui.csproj
Browse http://localhost:5000 (see Properties/launchSettings.json).