fix: Changing the answer does not take effect (#2437)

This commit is contained in:
shaohuzhang1 2025-02-28 11:51:55 +08:00 committed by GitHub
parent 7d47f97354
commit 72db45bcc0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ class ISearchDatasetStepNode(INode):
if self.flow_params_serializer.data.get('re_chat', False):
history_chat_record = self.flow_params_serializer.data.get('history_chat_record', [])
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])]
exclude_paragraph_id_list = list(set(paragraph_id_list))

View File

@ -122,7 +122,7 @@ function showSource(row: any) {
return false
}
const regenerationChart = (chat: chatType) => {
props.sendMessage(chat.problem_text, { rechat: true })
props.sendMessage(chat.problem_text, { re_chat: true })
}
const stopChat = (chat: chatType) => {
props.chatManagement.stop(chat.id)