From 3ba598633c4f3b640ea2c8ecc0a604eed39b42e4 Mon Sep 17 00:00:00 2001 From: reece00 <37351410+reece00@users.noreply.github.com> Date: Thu, 28 Dec 2023 23:52:45 +0800 Subject: [PATCH] Non -GPT model disable system prompt (#3684) --- app/store/chat.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/store/chat.ts b/app/store/chat.ts index 4af5a52a..dff6b7bf 100644 --- a/app/store/chat.ts +++ b/app/store/chat.ts @@ -386,7 +386,9 @@ export const useChatStore = createPersistStore( const contextPrompts = session.mask.context.slice(); // system prompts, to get close to OpenAI Web ChatGPT - const shouldInjectSystemPrompts = modelConfig.enableInjectSystemPrompts; + const shouldInjectSystemPrompts = + modelConfig.enableInjectSystemPrompts && + session.mask.modelConfig.model.startsWith("gpt-"); var systemPrompts: ChatMessage[] = []; systemPrompts = shouldInjectSystemPrompts