build fix

This commit is contained in:
dal 2025-08-13 12:00:00 -06:00
parent c8d2c0ff0f
commit 94a127cb0e
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ const StreamTokenArrayDemo = ({
}, [tokens, autoStream, streamDelay]);
const { throttledTokens, throttledContent, isDone, flushNow, reset } = useStreamTokenArray({
tokens: autoStream ? currentTokens : tokens,
tokens: (autoStream ? currentTokens : tokens).map(t => ({ token: t, delayMs: 0 })),
isStreamFinished: autoStream ? finished : isStreamFinished,
...hookProps
});