Skip to content

Commit

Permalink
fix bug in formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
liqul committed Sep 4, 2024
1 parent aa23765 commit 9d8acd9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def compose_prompt(
return chat_history

def format_attachment(self, attachment: Attachment):
if attachment.type == AttachmentType.thought:
if attachment.type == AttachmentType.thought and "{ROLE_NAME}" in attachment.content:
return attachment.content.format(ROLE_NAME=self.role_name)
else:
return attachment.content
Expand Down

0 comments on commit 9d8acd9

Please sign in to comment.