From 688dd333dca162a71f3a51c3ebf335d389b26a6a Mon Sep 17 00:00:00 2001 From: Catherine Renelle <32781029+catrenelle@users.noreply.github.com> Date: Fri, 13 Feb 2026 14:38:07 -0500 Subject: [PATCH] Add adjustable context size, custom chatbot name, and cat icon for AI chat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Settings > AI tab now includes context size slider (2048–131072) with VRAM estimate and a chatbot name field. ChatService reads both dynamically instead of hardcoding num_ctx=16384 and "Purrse AI". Chat panel FAB and empty state use mdi-cat icon to match the rest of the app. Co-Authored-By: Claude Opus 4.6 --- frontend/src/components/chat/ChatPanel.vue | 20 +- frontend/src/types/index.ts | 2 + frontend/src/views/settings/SettingsView.vue | 35 +- .../Services/AiCategorizationService.cs | 10 +- src/Purrse.Api/Services/ChatService.cs | 13 +- src/Purrse.Core/DTOs/AiCategorizationDtos.cs | 8 +- .../Models/AiCategorizationSettings.cs | 2 + .../AiCategorizationSettingsConfiguration.cs | 1 + ...20260213192005_AddChatSettings.Designer.cs | 1570 +++++++++++++++++ .../20260213192005_AddChatSettings.cs | 40 + .../PurrseDbContextModelSnapshot.cs | 7 + 11 files changed, 1696 insertions(+), 12 deletions(-) create mode 100644 src/Purrse.Data/Migrations/20260213192005_AddChatSettings.Designer.cs create mode 100644 src/Purrse.Data/Migrations/20260213192005_AddChatSettings.cs diff --git a/frontend/src/components/chat/ChatPanel.vue b/frontend/src/components/chat/ChatPanel.vue index 6301dea..f0443a0 100644 --- a/frontend/src/components/chat/ChatPanel.vue +++ b/frontend/src/components/chat/ChatPanel.vue @@ -8,14 +8,14 @@ elevation="8" @click="togglePanel" > - {{ panelOpen ? 'mdi-close' : 'mdi-robot-outline' }} + {{ panelOpen ? 'mdi-close' : 'mdi-cat' }} - Purrse AI + {{ chatBotName }}