mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-03 06:12:14 +08:00
feat: enable mock specific files located in the public/mock folder
This commit is contained in:
@@ -74,10 +74,14 @@ async function* chatReplayStream(
|
|||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
let replayFilePath = "";
|
let replayFilePath = "";
|
||||||
if (urlParams.has("mock")) {
|
if (urlParams.has("mock")) {
|
||||||
replayFilePath =
|
if (urlParams.get("mock")) {
|
||||||
params.interrupt_feedback === "accepted"
|
replayFilePath = `/mock/${urlParams.get("mock")!}.txt`;
|
||||||
? "/mock/before-interrupt.txt"
|
} else {
|
||||||
: "/mock/after-interrupt.txt";
|
replayFilePath =
|
||||||
|
params.interrupt_feedback === "accepted"
|
||||||
|
? "/mock/before-interrupt.txt"
|
||||||
|
: "/mock/after-interrupt.txt";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
const replayId = extractReplayIdFromSearchParams(window.location.search);
|
const replayId = extractReplayIdFromSearchParams(window.location.search);
|
||||||
if (replayId) {
|
if (replayId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user