From 3e01286b61815de77903ce61f08264c9f975a8da Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 12 Jul 2025 23:31:04 +0400 Subject: [PATCH] refac --- backend/open_webui/models/notes.py | 4 ++-- src/lib/components/notes/NoteEditor.svelte | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/open_webui/models/notes.py b/backend/open_webui/models/notes.py index 3570bfc593..ce3b9f2e20 100644 --- a/backend/open_webui/models/notes.py +++ b/backend/open_webui/models/notes.py @@ -130,9 +130,9 @@ class NoteTable: if "title" in form_data: note.title = form_data["title"] if "data" in form_data: - note.data = form_data["data"] + note.data = {**note.data, **form_data["data"]} if "meta" in form_data: - note.meta = form_data["meta"] + note.meta = {**note.meta, **form_data["meta"]} if "access_control" in form_data: note.access_control = form_data["access_control"] diff --git a/src/lib/components/notes/NoteEditor.svelte b/src/lib/components/notes/NoteEditor.svelte index c0e7f99e67..a1940cc8ae 100644 --- a/src/lib/components/notes/NoteEditor.svelte +++ b/src/lib/components/notes/NoteEditor.svelte @@ -626,7 +626,7 @@ ${content} md: '' }; - const systemPrompt = `Enhance existing notes using additional context provided from audio transcription or uploaded file content. Your task is to make the notes more useful and comprehensive by incorporating relevant information from the provided context. + const systemPrompt = `Enhance existing notes using additional context provided from audio transcription or uploaded file content in the content's primary language. Your task is to make the notes more useful and comprehensive by incorporating relevant information from the provided context. Input will be provided within and XML tags, providing a structure for the existing notes and context respectively.