feat: adjust animation speed
This commit is contained in:
parent
33b8145ee4
commit
e24a05bc76
|
|
@ -90,7 +90,7 @@ async function* chatReplayStream(
|
||||||
} as ChatEvent;
|
} as ChatEvent;
|
||||||
if (chatEvent.type === "message_chunk") {
|
if (chatEvent.type === "message_chunk") {
|
||||||
if (!chatEvent.data.finish_reason) {
|
if (!chatEvent.data.finish_reason) {
|
||||||
await sleepInReplay(250 + Math.random() * 250);
|
await sleepInReplay(100 + Math.random() * 250);
|
||||||
}
|
}
|
||||||
} else if (chatEvent.type === "tool_call_result") {
|
} else if (chatEvent.type === "tool_call_result") {
|
||||||
await sleepInReplay(1500);
|
await sleepInReplay(1500);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue