This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-15 23:32:17 -04:00
1 parent f67252b5e8
commit 2712103c59
1 file changed
+12 -28
+12 -28
View File
@@ -348,13 +348,9 @@ async def get_note_chat_by_id(
changed = True changed = True
system = ( system = (
f'CONTEXT: f'CONTEXT:\nCurrent note id: {note.id}\n'
Current note id: {note.id} 'This chat is attached to the current note.\n'
' 'For edit requests like make this concise, rewrite, enhance, shorten, or update: call view_note then replace_note_content.\n'
'This chat is attached to the current note.
'
'For edit requests like make this concise, rewrite, enhance, shorten, or update: call view_note then replace_note_content.
'
'Do not say an edit is done unless replace_note_content succeeds.' 'Do not say an edit is done unless replace_note_content succeeds.'
) )
if params.get('system') != system: if params.get('system') != system:
@@ -383,13 +379,9 @@ Current note id: {note.id}
'models': [''], 'models': [''],
'params': { 'params': {
'system': ( 'system': (
f'CONTEXT: f'CONTEXT:\nCurrent note id: {note.id}\n'
Current note id: {note.id} 'This chat is attached to the current note.\n'
' 'For edit requests like make this concise, rewrite, enhance, shorten, or update: call view_note then replace_note_content.\n'
'This chat is attached to the current note.
'
'For edit requests like make this concise, rewrite, enhance, shorten, or update: call view_note then replace_note_content.
'
'Do not say an edit is done unless replace_note_content succeeds.' 'Do not say an edit is done unless replace_note_content succeeds.'
) )
}, },
@@ -451,13 +443,9 @@ async def get_note_chats_by_id(
changed = True changed = True
system = ( system = (
f'CONTEXT: f'CONTEXT:\nCurrent note id: {note.id}\n'
Current note id: {note.id} 'This chat is attached to the current note.\n'
' 'For edit requests like make this concise, rewrite, enhance, shorten, or update: call view_note then replace_note_content.\n'
'This chat is attached to the current note.
'
'For edit requests like make this concise, rewrite, enhance, shorten, or update: call view_note then replace_note_content.
'
'Do not say an edit is done unless replace_note_content succeeds.' 'Do not say an edit is done unless replace_note_content succeeds.'
) )
if params.get('system') != system: if params.get('system') != system:
@@ -518,13 +506,9 @@ async def create_note_chat_by_id(
'models': [''], 'models': [''],
'params': { 'params': {
'system': ( 'system': (
f'CONTEXT: f'CONTEXT:\nCurrent note id: {note.id}\n'
Current note id: {note.id} 'This chat is attached to the current note.\n'
' 'For edit requests like make this concise, rewrite, enhance, shorten, or update: call view_note then replace_note_content.\n'
'This chat is attached to the current note.
'
'For edit requests like make this concise, rewrite, enhance, shorten, or update: call view_note then replace_note_content.
'
'Do not say an edit is done unless replace_note_content succeeds.' 'Do not say an edit is done unless replace_note_content succeeds.'
) )
}, },