From 521268b863442f63f634ce3468df7776f7328b11 Mon Sep 17 00:00:00 2001 From: Thinkwee Date: Fri, 8 Sep 2023 14:18:01 +0800 Subject: [PATCH] fix prompt engineer disappear in replay --- online_log/static/replay/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/online_log/static/replay/js/app.js b/online_log/static/replay/js/app.js index 0d078d7f..cbf3a01a 100644 --- a/online_log/static/replay/js/app.js +++ b/online_log/static/replay/js/app.js @@ -227,7 +227,7 @@ function extraction(contents) { } const regex_assistant = /(.*):([.\r\n\s\S\t\d\D]*)<->([.\r\n\s\S\t\d\D]*?)\]([.\r\n\s\S\t\d\D]*)/g; const regex_user = /(.*):(.*)(\[Start Chat\])([.\r\n\s\S\t\d\D]*?)\]([.\r\n\s\S\t\d\D]*)/g; - const regex_prompt = /(Prompt Engineer): "([.\s\S\d\D]*)"/g + const regex_prompt = /(Prompt Engineer):([\S\s]*)/g const regex_end = /(AgentTech Ends|ChatDev Ends)/g; const regex_start = /(ChatDev Starts)([\D\s])*(\d*)/g; @@ -572,4 +572,4 @@ async function printCommand(paragraph, command) { } await Promise.all(tasks); return 1; -} \ No newline at end of file +}