Skip to content

Commit d92e267

Browse files
committed
fix: fix system prompt missing bug
1 parent 950a0cd commit d92e267

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PromptMerger.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ export class PromptMerger {
164164
}
165165
}
166166
}
167+
168+
system_prompt = system_prompts.join(this.options.join_string);
167169
};
168170

169171
const only_first_with = (role: "user" | "assistant" | "remove") => {
@@ -173,7 +175,6 @@ export class PromptMerger {
173175
}
174176

175177
if (role !== "remove") {
176-
system_prompt = first_system.message.content;
177178
const suffix = system_messages
178179
.slice(1)
179180
.map((m) => m.message.content)

0 commit comments

Comments
 (0)