Skip to content

Commit

Permalink
ensure ToolCalled retains custom render
Browse files Browse the repository at this point in the history
  • Loading branch information
rgbkrk committed Mar 7, 2024
1 parent 9a4722a commit f038bc0
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 f038bc0

Please sign in to comment.