fix: The dialogue prompt is incorrect (#2197)

This commit is contained in:
shaohuzhang1 2025-02-10 11:59:00 +08:00 committed by GitHub
parent be27e15885
commit 6ecc1c6aa8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -388,6 +388,9 @@ export class ChatRecordManage {
(item) => item.length == 1 && item[0].content == '',
'index'
)
if (set_index <= -1) {
set_index = 0
}
this.chat.answer_text_list[set_index] = [
{
content: answer_text_block,