Skip to content

Commit

Permalink
Non -GPT model disable system prompt (ChatGPTNextWeb#3684)
Browse files Browse the repository at this point in the history
  • Loading branch information
reece00 authored and Hk-Gosuto committed Dec 29, 2023
1 parent 4240771 commit 9da32a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/store/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,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
Expand Down

0 comments on commit 9da32a4

Please sign in to comment.