Skip to content

Commit

Permalink
fix: thread rendering (#646)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt authored Nov 8, 2024
1 parent d20c385 commit 8826b47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/frontend/components/SmartViewer/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,10 @@ export function BubbleMessage({ role, content, extra, enrichments }) {

const color = getColorForRole(role);

if (!content) {
return;
}

if (typeof content === "object") {
if (role === "assistant") {
content = content.output;
Expand Down

0 comments on commit 8826b47

Please sign in to comment.