fix: Changing the answer does not take effect (#2437)
This commit is contained in:
parent
7d47f97354
commit
72db45bcc0
@ -66,7 +66,7 @@ class ISearchDatasetStepNode(INode):
|
|||||||
if self.flow_params_serializer.data.get('re_chat', False):
|
if self.flow_params_serializer.data.get('re_chat', False):
|
||||||
history_chat_record = self.flow_params_serializer.data.get('history_chat_record', [])
|
history_chat_record = self.flow_params_serializer.data.get('history_chat_record', [])
|
||||||
paragraph_id_list = [p.get('id') for p in flat_map(
|
paragraph_id_list = [p.get('id') for p in flat_map(
|
||||||
[get_paragraph_list(chat_record, self.node.id) for chat_record in history_chat_record if
|
[get_paragraph_list(chat_record, self.runtime_node_id) for chat_record in history_chat_record if
|
||||||
chat_record.problem_text == question])]
|
chat_record.problem_text == question])]
|
||||||
exclude_paragraph_id_list = list(set(paragraph_id_list))
|
exclude_paragraph_id_list = list(set(paragraph_id_list))
|
||||||
|
|
||||||
|
|||||||
@ -122,7 +122,7 @@ function showSource(row: any) {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
const regenerationChart = (chat: chatType) => {
|
const regenerationChart = (chat: chatType) => {
|
||||||
props.sendMessage(chat.problem_text, { rechat: true })
|
props.sendMessage(chat.problem_text, { re_chat: true })
|
||||||
}
|
}
|
||||||
const stopChat = (chat: chatType) => {
|
const stopChat = (chat: chatType) => {
|
||||||
props.chatManagement.stop(chat.id)
|
props.chatManagement.stop(chat.id)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user