Skip to content

Commit 5451a0b

Browse files
committed
fix: History message error when retry question
1 parent 40bff58 commit 5451a0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/chat/serializers/chat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def chat_work_flow(self, chat_info: ChatInfo, instance: dict, base_to_response):
396396
work_flow_manage = WorkflowManage(Workflow.new_instance(work_flow),
397397
{'history_chat_record': history_chat_record, 'question': message,
398398
'chat_id': chat_info.chat_id, 'chat_record_id': str(
399-
uuid.uuid7()) if chat_record is None else chat_record.id,
399+
uuid.uuid7()) if chat_record is None else str(chat_record.id),
400400
'stream': stream,
401401
're_chat': re_chat,
402402
'chat_user_id': chat_user_id,

0 commit comments

Comments
 (0)