feat: change replay speed

This commit is contained in:
Li Xin
2025-05-01 14:53:53 +08:00
parent f6839db346
commit 549f386d54

View File

@@ -97,7 +97,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(100 + Math.random() * 175); await sleepInReplay(50);
} }
} else if (chatEvent.type === "tool_call_result") { } else if (chatEvent.type === "tool_call_result") {
await sleepInReplay(500); await sleepInReplay(500);