Pages/Index.cshtmlhtml

Documentation

Lilith.RazorWebGui (Version 2)

ASP.NET Core Razor Pages web UI for Lilith Version 2. Mirrors LilithConsole chat, commands, and logging.

  • Model: LILITH_MODEL (default gemma4)
  • 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).

@page@model Lilith.RazorWebGui.Pages.IndexModel@{    ViewData["Title"] = $"Lilith v{Model.VersionNumber}";}<section class="chat-header">    <h1>Lilith — Version @Model.VersionNumber</h1>    <p class="meta">Model: <strong>@Model.ModelName</strong>@if (Model.TtsEnabled) { <span> · TTS enabled</span> }</p></section><section class="chat-log" aria-live="polite">@foreach (var line in Model.Lines){    <div class="line @line.CssClass"><span class="src">@line.Source</span> <span class="text">@line.Text</span></div>}</section><form method="post" asp-page-handler="Send" class="chat-form">    <label for="input">Message</label>    <textarea id="input" name="Input" rows="3" placeholder="Type a message, exit, /new, /history…" autofocus></textarea>    <button type="submit">Send</button></form><p class="hint">Commands: <code>exit</code>, <code>/new</code>, <code>/history</code>, <code>/history &lt;n&gt;</code>@if (Model.TtsEnabled) { <text>, <code>/voice &lt;name&gt;</code></text> }</p>