diff --git a/app/store/chat.ts b/app/store/chat.ts index ea2c472f..6b403dd6 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({