fix: Not displaying execution details and returning too much data (#3974)

This commit is contained in:
shaohuzhang1 2025-09-01 15:47:15 +08:00 committed by GitHub
parent cbee152262
commit 9970d21a8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -150,7 +150,9 @@ class ApplicationChatRecordQuerySerializers(serializers.Serializer):
chat_record.save()
show_source_dict = {'knowledge_list': knowledge_list,
'paragraph_list': paragraph_list, }
show_exec_dict = {'execution_details': [chat_record.details[key] for key in chat_record.details]}
show_exec_dict = {'execution_details': [chat_record.details[key] for key in chat_record.details if
(True if show_exec else chat_record.details[key].get(
'type') == 'start-node')]}
return {
**ChatRecordSerializerModel(chat_record).data,
'padding_problem_text': chat_record.details.get('problem_padding').get(