From 1513881eed064768da907a52d76ae869d771fd09 Mon Sep 17 00:00:00 2001 From: imldy Date: Mon, 10 Jul 2023 18:57:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E5=BA=94=E8=AF=A5=E6=B3=A8=E5=85=A5System=20Prompt=E7=9A=84?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E8=A7=84=E5=88=99=E4=B8=BA=E6=A0=B9=E6=8D=AE?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/store/chat.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/store/chat.ts b/app/store/chat.ts index ea2c472f4..6b403dd6a 100644 --- a/app/store/chat.ts +++ b/app/store/chat.ts @@ -387,8 +387,7 @@ export const useChatStore = create()( const contextPrompts = session.mask.context.slice(); // system prompts, to get close to OpenAI Web ChatGPT - // only will be injected if user does not use a mask or set none context prompts - const shouldInjectSystemPrompts = contextPrompts.length === 0; + const shouldInjectSystemPrompts = modelConfig.enableInjectSystemPrompts; const systemPrompts = shouldInjectSystemPrompts ? [ createMessage({