Skip to content

Commit

Permalink
ensure we correctly set system message
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian committed Sep 25, 2023
1 parent 7763abe commit ca9abff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/axolotl/prompters.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def build_prompt(self, source) -> Generator[str, None, None]:

# Add the conversation system prompt if provided, otherwise use the default one
if source[0]["from"] == "system":
conv.system = source[0]["value"]
conv.set_system_message(source[0]["value"])
source.pop(0)

roles = {"human": conv.roles[0], "gpt": conv.roles[1]}
Expand Down

0 comments on commit ca9abff

Please sign in to comment.