From e24a05bc76ee15e47e6e5e194630a3619d1131cb Mon Sep 17 00:00:00 2001 From: Li Xin Date: Fri, 25 Apr 2025 13:36:21 +0800 Subject: [PATCH] feat: adjust animation speed --- web/src/core/api/chat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/core/api/chat.ts b/web/src/core/api/chat.ts index 68078b4..ee600f8 100644 --- a/web/src/core/api/chat.ts +++ b/web/src/core/api/chat.ts @@ -90,7 +90,7 @@ async function* chatReplayStream( } as ChatEvent; if (chatEvent.type === "message_chunk") { if (!chatEvent.data.finish_reason) { - await sleepInReplay(250 + Math.random() * 250); + await sleepInReplay(100 + Math.random() * 250); } } else if (chatEvent.type === "tool_call_result") { await sleepInReplay(1500);