Skip to content

Commit

Permalink
fix template bug! & revert related test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hmirin committed Aug 20, 2023
1 parent 01b7efc commit ddbb7b8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/prompttrail/agent/template/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def _render(self, state: "State") -> Generator[Message, None, State]:
message = StatefulMessage(
content=rendered_content, sender=self.role, template_id=self.template_id
)
state.session_history.messages.append(message) # type: ignore
# after_transform
for after_transform_hook in self.after_transform:
state = after_transform_hook.hook(state)
Expand Down

0 comments on commit ddbb7b8

Please sign in to comment.