Skip to content

Commit

Permalink
fix: double system prompt (balrog-ai#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidePaglieri authored Jan 7, 2025
1 parent c934b27 commit e7854a1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions balrog/prompt_builder/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ def get_prompt(self, icl_episodes=False) -> List[Message]:
List[Message]: Messages constructed from the event history.
"""
messages = []
if self.system_prompt:
messages.append(Message(role="user", content=self.system_prompt))

if self.system_prompt and not icl_episodes:
messages.append(Message(role="user", content=self.system_prompt))
Expand Down

0 comments on commit e7854a1

Please sign in to comment.