mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-02 22:32:27 +08:00
fix: Integrate smoothStream and enhance chat message display with args handling
This commit is contained in:
@@ -54,6 +54,13 @@ export function ChatMessageDisplay({
|
||||
>
|
||||
<div className="flex flex-col gap-2">
|
||||
<div className="text-xs">Tool: display_diagram</div>
|
||||
{args && (
|
||||
<div className="mt-1 font-mono text-xs overflow-hidden">
|
||||
{typeof args === "object" &&
|
||||
Object.keys(args).length > 0 &&
|
||||
`Args: ${JSON.stringify(args, null, 2)}`}
|
||||
</div>
|
||||
)}
|
||||
<div className="mt-2 text-sm">
|
||||
{state === "partial-call" ? (
|
||||
<div className="h-4 w-4 border-2 border-primary border-t-transparent rounded-full animate-spin" />
|
||||
|
||||
Reference in New Issue
Block a user