From 23fcb0e94e752f8cb3ab557ab22666d454673d5d Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Wed, 23 Jul 2025 13:56:27 +0800 Subject: [PATCH] fix: After the application opens a session, after a period of time, the conversation record ID will report an error (#3712) --- apps/application/serializers/chat_message_serializers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/application/serializers/chat_message_serializers.py b/apps/application/serializers/chat_message_serializers.py index 2ce5273f7..e0ea7e9f5 100644 --- a/apps/application/serializers/chat_message_serializers.py +++ b/apps/application/serializers/chat_message_serializers.py @@ -395,13 +395,14 @@ class ChatMessageSerializer(serializers.Serializer): work_flow_manage = WorkflowManage(Flow.new_instance(chat_info.work_flow_version.work_flow), {'history_chat_record': history_chat_record, 'question': message, 'chat_id': chat_info.chat_id, 'chat_record_id': str( - uuid.uuid1()) if chat_record is None else chat_record.id, + uuid.uuid1()) if chat_record is None else str(chat_record.id), 'stream': stream, 're_chat': re_chat, 'client_id': client_id, 'client_type': client_type, 'user_id': user_id}, WorkFlowPostHandler(chat_info, client_id, client_type), - base_to_response, form_data, image_list, document_list, audio_list, other_list, + base_to_response, form_data, image_list, document_list, audio_list, + other_list, self.data.get('runtime_node_id'), self.data.get('node_data'), chat_record, self.data.get('child_node')) r = work_flow_manage.run()