Skip to content

Commit

Permalink
Non -GPT model disable system prompt (#3684)
Browse files Browse the repository at this point in the history
  • Loading branch information
reece00 authored Dec 28, 2023
1 parent 406530c commit 3ba5986
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 @@ -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
Expand Down

0 comments on commit 3ba5986

Please sign in to comment.