From 6ecc1c6aa86247cd1b8ce9d396da7b9ebd3bcc11 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Mon, 10 Feb 2025 11:59:00 +0800 Subject: [PATCH] fix: The dialogue prompt is incorrect (#2197) --- ui/src/api/type/application.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/src/api/type/application.ts b/ui/src/api/type/application.ts index 5e05bdd03..c5858acbe 100644 --- a/ui/src/api/type/application.ts +++ b/ui/src/api/type/application.ts @@ -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,