From 79514b8f93edc64d2cafba5ee0e21bbbe5774e81 Mon Sep 17 00:00:00 2001 From: perf3ct Date: Mon, 17 Mar 2025 16:33:30 +0000 Subject: [PATCH] also add the errors to the top of the chat window --- src/public/app/widgets/llm_chat_panel.ts | 106 +++++++++++++++++++++++ 1 file changed, 106 insertions(+) diff --git a/src/public/app/widgets/llm_chat_panel.ts b/src/public/app/widgets/llm_chat_panel.ts index 154b8f1e3..3ecfd0eab 100644 --- a/src/public/app/widgets/llm_chat_panel.ts +++ b/src/public/app/widgets/llm_chat_panel.ts @@ -6,6 +6,7 @@ import utils from "../services/utils.js"; import { t } from "../services/i18n.js"; import libraryLoader from "../services/library_loader.js"; import { applySyntaxHighlight } from "../services/syntax_highlight.js"; +import options from "../services/options.js"; // Import the LLM Chat CSS (async function() { @@ -32,12 +33,16 @@ export default class LlmChatPanel extends BasicWidget { private loadingIndicator!: HTMLElement; private sourcesList!: HTMLElement; private useAdvancedContextCheckbox!: HTMLInputElement; + private validationWarning!: HTMLElement; private sessionId: string | null = null; private currentNoteId: string | null = null; doRender() { this.$widget = $(`
+ + +