Skip to content

Commit

Permalink
fix: The dialogue prompt is incorrect (#2197)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 authored Feb 10, 2025
1 parent be27e15 commit 6ecc1c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/src/api/type/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6ecc1c6

Please sign in to comment.