Skip to content

Commit

Permalink
fix: fix attribute error in _repr_html_ method for LettaResponse (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dboyliao authored Dec 23, 2024
1 parent e09fd52 commit 2ee4f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion letta/schemas/letta_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_formatted_content(msg):
return f'<div class="content"><span class="function-name">{html.escape(msg.function_call.name)}</span>({args})</div>'
elif msg.message_type == "tool_call_message":
args = format_json(msg.tool_call.arguments)
return f'<div class="content"><span class="function-name">{html.escape(msg.function_call.name)}</span>({args})</div>'
return f'<div class="content"><span class="function-name">{html.escape(msg.tool_call.name)}</span>({args})</div>'
elif msg.message_type == "function_return":
return_value = format_json(msg.function_return)
# return f'<div class="status-line">Status: {html.escape(msg.status)}</div><div class="content">{return_value}</div>'
Expand Down

0 comments on commit 2ee4f84

Please sign in to comment.