using Lilith.RazorWebGui.Services;namespace Lilith.RazorWebGui;public static class LilithWebApplication{ public static WebApplication Build(string[] args) { var builder = WebApplication.CreateBuilder(args); builder.Services.AddRazorPages(); builder.Services.AddSingleton<LilithChatService>(); builder.Services.AddHostedService<LilithBootService>(); var app = builder.Build(); if (!app.Environment.IsDevelopment()) { app.UseExceptionHandler("/Error"); } app.UseStaticFiles(); app.UseRouting(); app.MapRazorPages(); app.MapGet("/health", () => Results.Ok(new { status = "ok" })); return app; }}
Documentation
Lilith.RazorWebGui (Version 3)
ASP.NET Core Razor Pages web UI for Lilith Version 3. 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).