|
|
@ -780,7 +780,7 @@ const simulateBotResponse = async (userMessage) => { |
|
|
let index = 0; |
|
|
let index = 0; |
|
|
|
|
|
|
|
|
const botIndex = messages.value.length - 1; |
|
|
const botIndex = messages.value.length - 1; |
|
|
const baseDelay = 5; // 普通字符基础延迟(毫秒) |
|
|
|
|
|
|
|
|
const baseDelay = 165; // 普通字符基础延迟(毫秒) |
|
|
const slowPunct = /[。!?!?;;]/; // 句号、感叹号、分号等较长停顿 |
|
|
const slowPunct = /[。!?!?;;]/; // 句号、感叹号、分号等较长停顿 |
|
|
const midPunct = /[,、,::]/; // 逗号、顿号、冒号等中等停顿 |
|
|
const midPunct = /[,、,::]/; // 逗号、顿号、冒号等中等停顿 |
|
|
|
|
|
|
|
|
|