Skip to content

Commit

Permalink
fix: simplify output check and add debug logging in ContentDisplay co…
Browse files Browse the repository at this point in the history
…mponent
  • Loading branch information
anovazzi1 committed Feb 14, 2025
1 parent d4c04c8 commit e0d4e8a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export default function ContentDisplay({
return String(output);
}
};
console.log("output",content.output);

contentData = (
<div className="flex flex-col gap-2">
Expand All @@ -209,7 +210,7 @@ export default function ContentDisplay({
language="json"
code={JSON.stringify(content.tool_input, null, 2)}
/>
{content.output !== undefined && (
{content.output && (
<>
<Markdown
remarkPlugins={[remarkGfm]}
Expand Down

0 comments on commit e0d4e8a

Please sign in to comment.