diff --git a/src/components/ChatContent/ToolsContent.tsx b/src/components/ChatContent/ToolsContent.tsx index 6300bffa..8ce58b26 100644 --- a/src/components/ChatContent/ToolsContent.tsx +++ b/src/components/ChatContent/ToolsContent.tsx @@ -22,6 +22,7 @@ const Result: React.FC<{ children: string }> = ({ children }) => { const lines = children.split("\n"); const [open, setOpen] = React.useState(false); if (lines.length < 4 || open) + if (lines.length < 6 || open) return {children}; const toShow = lines.slice(0, 6).join("\n") + "\n "; return (