fix(db-playground): ai response hidden in chat

This commit is contained in:
Greg Richardson committed 2024-06-11 13:23:04 -06:00
1 parent 021276345a
commit 7fbfd7110d
1 file changed
+2 -1
+2 -1
View File
@@ -244,9 +244,10 @@ export default function Page() {
{messages.length > 0 ? (
<div className="flex flex-col gap-4 w-full max-w-4xl p-10">
{messages
// Don't include tool calls that don't have an associated UI
.filter(
(message) =>
message.content ||
// Don't include tool calls that don't have an associated UI
!message.toolInvocations?.every((t) => t.toolName !== 'generateChart')
)
.map((message) => {