mirror of
https://github.com/OpenBMB/ChatDev.git
synced 2026-04-25 11:18:06 +00:00
fix prompt engineer disappear in replay
This commit is contained in:
parent
b8db82a2f8
commit
521268b863
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user