Skip to content

Commit

Permalink
Merge pull request #145 from rgbkrk/pass-custom-render
Browse files Browse the repository at this point in the history
ensure ToolCalled retains custom render
  • Loading branch information
rgbkrk committed Mar 7, 2024
2 parents 9a4722a + f038bc0 commit de7132c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chatlab/views/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ def append_arguments(self, arguments: str):
def apply_result(self, result: str):
"""Replaces the existing display with a new one that shows the result of the tool being called."""
tc = ToolCalled(
id=self.id, name=self.name, arguments=self.arguments, result=result, display_id=self.display_id
id=self.id, name=self.name, arguments=self.arguments, result=result, display_id=self.display_id,
custom_render=self.custom_render
)
tc.update()
return tc
Expand Down

0 comments on commit de7132c

Please sign in to comment.