mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac
This commit is contained in:
parent
b711c88bab
commit
3e01286b61
2 changed files with 3 additions and 3 deletions
|
|
@ -130,9 +130,9 @@ class NoteTable:
|
||||||
if "title" in form_data:
|
if "title" in form_data:
|
||||||
note.title = form_data["title"]
|
note.title = form_data["title"]
|
||||||
if "data" in form_data:
|
if "data" in form_data:
|
||||||
note.data = form_data["data"]
|
note.data = {**note.data, **form_data["data"]}
|
||||||
if "meta" in form_data:
|
if "meta" in form_data:
|
||||||
note.meta = form_data["meta"]
|
note.meta = {**note.meta, **form_data["meta"]}
|
||||||
|
|
||||||
if "access_control" in form_data:
|
if "access_control" in form_data:
|
||||||
note.access_control = form_data["access_control"]
|
note.access_control = form_data["access_control"]
|
||||||
|
|
|
||||||
|
|
@ -626,7 +626,7 @@ ${content}
|
||||||
md: ''
|
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 <notes> and <context> XML tags, providing a structure for the existing notes and context respectively.
|
Input will be provided within <notes> and <context> XML tags, providing a structure for the existing notes and context respectively.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue