From 5654652499995362e403c895fb61f31f6bec72fe Mon Sep 17 00:00:00 2001 From: Karsten Jeppesen Date: Tue, 12 May 2026 16:07:06 +0200 Subject: [PATCH] Added background image and color --- Agent86/Agent86/Pages/Index.cshtml | 6 +++--- Agent86/Agent86/Pages/Index.cshtml.cs | 2 +- Agent86/Agent86/Pages/Shared/_Layout.cshtml | 2 +- Agent86/Agent86/wwwroot/images/background.png | Bin 0 -> 3025968 bytes 4 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 Agent86/Agent86/wwwroot/images/background.png diff --git a/Agent86/Agent86/Pages/Index.cshtml b/Agent86/Agent86/Pages/Index.cshtml index 587b6e0..944dba2 100644 --- a/Agent86/Agent86/Pages/Index.cshtml +++ b/Agent86/Agent86/Pages/Index.cshtml @@ -16,13 +16,13 @@ } else { -

@Model.theScene.quest

+

@Model.theScene.quest

-
+
@foreach (var msg in Model.ChatHistory) {

- @msg.Role: @msg.Content + @msg.Role: @Html.Raw(msg.Content)

}
diff --git a/Agent86/Agent86/Pages/Index.cshtml.cs b/Agent86/Agent86/Pages/Index.cshtml.cs index 7e05d4e..c735b94 100644 --- a/Agent86/Agent86/Pages/Index.cshtml.cs +++ b/Agent86/Agent86/Pages/Index.cshtml.cs @@ -86,7 +86,7 @@ namespace Agent86.Pages var reply = await _ollama.GenerateReplyAsync(ChatHistory, theScene.instruction); - ChatHistory.Add(new ChatMessage { Role = theScene.customer, Content = ToPlainText(reply) }); + ChatHistory.Add(new ChatMessage { Role = theScene.customer, Content = Markdown.ToHtml(reply) }); } SaveHistory(); diff --git a/Agent86/Agent86/Pages/Shared/_Layout.cshtml b/Agent86/Agent86/Pages/Shared/_Layout.cshtml index 98d60a4..fc27027 100644 --- a/Agent86/Agent86/Pages/Shared/_Layout.cshtml +++ b/Agent86/Agent86/Pages/Shared/_Layout.cshtml @@ -9,7 +9,7 @@ - +