diff --git a/web_ui/src/Chat.js b/web_ui/src/Chat.js index 1c0c00c..d18717a 100644 --- a/web_ui/src/Chat.js +++ b/web_ui/src/Chat.js @@ -1793,9 +1793,9 @@ const Chat = ({ Delete this message Delete this and previous message - Delete all messages Delete this and all previous messages Delete this and all subseqeunt messages + Delete all messages - - + { Object.keys(selectedAiLibraryNotes).length === 0 ? : } @@ -2552,11 +2554,17 @@ const Chat = ({ { aiLibraryOpen ? - - Loaded knowledge: { Object.keys(selectedAiLibraryNotes).length === 0 ? "None" : ""} + + AI Library + Loaded notes: {Object.keys(selectedAiLibraryNotes).length} - + + {setAiLibraryOpen(false)}}> + + + + {Object.values(selectedAiLibraryNotes).map(note =>( { if(pageLoaded && appendNoteContent.content !== "" && noteContentRef?.current) { - setNoteOpen({id: id, timestamp: Date.now()}); + setNoteOpen({id: id, timestamp: Date.now()}); // to scroll the note into view if its off the screen let newNotePart = appendNoteContent.content.trim(); if(typeof newNotePart === "string") { let newNote = noteContentRef.current.innerText; @@ -721,7 +721,7 @@ Don't repeat the CONTEXT_TEXT or the REQUEST in your response. Create a response { markdownRenderingOn ? : } - + { inAILibrary ? : }