Skip to content

Commit 9970d21

Browse files
authored
fix: Not displaying execution details and returning too much data (#3974)
1 parent cbee152 commit 9970d21

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/application/serializers/application_chat_record.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ def reset_chat_record(chat_record, show_source, show_exec):
150150
chat_record.save()
151151
show_source_dict = {'knowledge_list': knowledge_list,
152152
'paragraph_list': paragraph_list, }
153-
show_exec_dict = {'execution_details': [chat_record.details[key] for key in chat_record.details]}
153+
show_exec_dict = {'execution_details': [chat_record.details[key] for key in chat_record.details if
154+
(True if show_exec else chat_record.details[key].get(
155+
'type') == 'start-node')]}
154156
return {
155157
**ChatRecordSerializerModel(chat_record).data,
156158
'padding_problem_text': chat_record.details.get('problem_padding').get(

0 commit comments

Comments
 (0)