From 9cabef67a7bb40a639e53ede50c5846babdda2fb Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 12 Jul 2025 22:55:45 +0400 Subject: [PATCH] refac --- src/lib/components/notes/NoteEditor.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/components/notes/NoteEditor.svelte b/src/lib/components/notes/NoteEditor.svelte index bbb27311f4..de48289db9 100644 --- a/src/lib/components/notes/NoteEditor.svelte +++ b/src/lib/components/notes/NoteEditor.svelte @@ -202,11 +202,11 @@ const generateTitleHandler = async () => { const content = note.data.content.md; const DEFAULT_TITLE_GENERATION_PROMPT_TEMPLATE = `### Task: -Generate a concise, 3-5 word title with an emoji summarizing the content. +Generate a concise, 3-5 word title with an emoji summarizing the content in the content's primary language. ### Guidelines: - The title should clearly represent the main theme or subject of the content. - Use emojis that enhance understanding of the topic, but avoid quotation marks or special formatting. -- Write the title in the chat's primary language; default to English if multilingual. +- Write the title in the content's primary language. - Prioritize accuracy over excessive creativity; keep it clear and simple. - Your entire response must consist solely of the JSON object, without any introductory or concluding text. - The output must be a single, raw JSON object, without any markdown code fences or other encapsulating text. @@ -875,7 +875,7 @@ Provide the enhanced notes in markdown format. Use markdown syntax for headings, {#if titleInputFocused && !titleGenerating}