enh: note editor prompts

This commit is contained in:
Timothy Jaeryang Baek
2025-07-12 23:47:27 +04:00
parent 6f896c4352
commit 3be734fd84
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -164,6 +164,9 @@
debounceTimeout = setTimeout(async () => {
const res = await updateNoteById(localStorage.token, id, {
title: note?.title === '' ? $i18n.t('Untitled') : note.title,
data: {
files: files
},
access_control: note?.access_control
}).catch((e) => {
toast.error(`${e}`);
@@ -428,6 +431,8 @@ ${content}
} else {
note.data.files = null;
}
changeDebounceHandler();
};
const inputFilesHandler = async (inputFiles) => {
@@ -632,7 +637,7 @@ Input will be provided within <notes> and <context> XML tags, providing a struct
# Output Format
Provide the enhanced notes in markdown format. Use markdown syntax for headings, lists (ordered, bullet, or checklist), and emphasis to improve clarity and presentation. Ensure that all integrated content from the context is accurately reflected. Return only the markdown formatted note.
Provide the enhanced notes in markdown format. Use markdown syntax for headings, lists, task lists ([ ]) where tasks or checklists are implied, and emphasis to improve clarity and presentation. Ensure that all integrated content from the context is accurately reflected. Return only the markdown formatted note.
`;
const [res, controller] = await chatCompletion(