Skip to content

Commit 23fcb0e

Browse files
authored
fix: After the application opens a session, after a period of time, the conversation record ID will report an error (#3712)
1 parent 3083d48 commit 23fcb0e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/application/serializers/chat_message_serializers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,13 +395,14 @@ def chat_work_flow(self, chat_info: ChatInfo, base_to_response):
395395
work_flow_manage = WorkflowManage(Flow.new_instance(chat_info.work_flow_version.work_flow),
396396
{'history_chat_record': history_chat_record, 'question': message,
397397
'chat_id': chat_info.chat_id, 'chat_record_id': str(
398-
uuid.uuid1()) if chat_record is None else chat_record.id,
398+
uuid.uuid1()) if chat_record is None else str(chat_record.id),
399399
'stream': stream,
400400
're_chat': re_chat,
401401
'client_id': client_id,
402402
'client_type': client_type,
403403
'user_id': user_id}, WorkFlowPostHandler(chat_info, client_id, client_type),
404-
base_to_response, form_data, image_list, document_list, audio_list, other_list,
404+
base_to_response, form_data, image_list, document_list, audio_list,
405+
other_list,
405406
self.data.get('runtime_node_id'),
406407
self.data.get('node_data'), chat_record, self.data.get('child_node'))
407408
r = work_flow_manage.run()

0 commit comments

Comments
 (0)