File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
ui/src/components/ai-chat/component/answer-content Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -61,14 +61,14 @@ const props = defineProps<{
6161
6262const chatMessage = (question : string , type : ' old' | ' new' , other_params_data ? : any ) => {
6363 if (type === ' old' ) {
64- add_answer_text_list ( props .chatRecord .answer_text_list )
64+ add_answer_text_list (props .chatRecord .answer_text_list )
6565 props .sendMessage (question , other_params_data , props .chatRecord )
6666 props .chatManagement .write (props .chatRecord .id )
6767 } else {
6868 props .sendMessage (question , other_params_data )
6969 }
7070}
71- const add_answer_text_list= (answer_text_list : Array <string >)=> {
71+ const add_answer_text_list = (answer_text_list : Array <string >) => {
7272 answer_text_list .push (' ' )
7373}
7474
@@ -82,8 +82,8 @@ function showSource(row: any) {
8282 }
8383 return false
8484}
85- const regenerationChart = (question : string ) => {
86- props .sendMessage (question , { rechat: true })
85+ const regenerationChart = (chat : chatType ) => {
86+ props .sendMessage (chat . problem_text , { rechat: true })
8787}
8888const stopChat = (chat : chatType ) => {
8989 props .chatManagement .stop (chat .id )
You can’t perform that action at this time.
0 commit comments