From 60693d6a293881a15074e08ed120f0f9619d4a3f Mon Sep 17 00:00:00 2001 From: josc146 Date: Fri, 8 Dec 2023 15:36:53 +0800 Subject: [PATCH] improve presets interaction --- .../src/pages/PresetsManager/PresetsButton.tsx | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/PresetsManager/PresetsButton.tsx b/frontend/src/pages/PresetsManager/PresetsButton.tsx index fd10d86..6816f77 100644 --- a/frontend/src/pages/PresetsManager/PresetsButton.tsx +++ b/frontend/src/pages/PresetsManager/PresetsButton.tsx @@ -52,7 +52,10 @@ const defaultPreset: Preset = { prompt: '', stop: '', injectStart: '', - injectEnd: '' + injectEnd: '', + presystem: true, + userName: '', + assistantName: '' }; const MessagesEditor = lazy(() => import('./MessagesEditor')); @@ -80,7 +83,9 @@ const setActivePreset = (preset: Preset) => { //} }; -const PresetCardFrame: FC void }> = (props) => { +const PresetCardFrame: FC +}> = (props) => { return