mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-20 02:01:26 +08:00
fix: 修改是否应该注入System Prompt的判断规则为根据设置项
This commit is contained in:
@@ -387,8 +387,7 @@ export const useChatStore = create<ChatStore>()(
|
|||||||
const contextPrompts = session.mask.context.slice();
|
const contextPrompts = session.mask.context.slice();
|
||||||
|
|
||||||
// system prompts, to get close to OpenAI Web ChatGPT
|
// 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 = modelConfig.enableInjectSystemPrompts;
|
||||||
const shouldInjectSystemPrompts = contextPrompts.length === 0;
|
|
||||||
const systemPrompts = shouldInjectSystemPrompts
|
const systemPrompts = shouldInjectSystemPrompts
|
||||||
? [
|
? [
|
||||||
createMessage({
|
createMessage({
|
||||||
|
Reference in New Issue
Block a user