mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-17 19:44:45 +08:00
feat: Enhanced Development Experience with Mock Mode (#35)
* feat: support mock for re-planning * chore: update mock example: vibe coding * chore: update final-answer.txt
This commit is contained in:
@@ -77,10 +77,13 @@ async function* chatReplayStream(
|
||||
if (urlParams.get("mock")) {
|
||||
replayFilePath = `/mock/${urlParams.get("mock")!}.txt`;
|
||||
} else {
|
||||
replayFilePath =
|
||||
params.interrupt_feedback === "accepted"
|
||||
? "/mock/before-interrupt.txt"
|
||||
: "/mock/after-interrupt.txt";
|
||||
if (params.interrupt_feedback === "accepted") {
|
||||
replayFilePath = "/mock/final-answer.txt";
|
||||
} else if (params.interrupt_feedback === "edit_plan") {
|
||||
replayFilePath = "/mock/re-plan.txt";
|
||||
} else {
|
||||
replayFilePath = "/mock/first-plan.txt";
|
||||
}
|
||||
}
|
||||
fastForwardReplaying = true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user