Skip to content

Commit 9022ae0

Browse files
committed
fix: add ip_address and source fields to chat user data
1 parent cdd00df commit 9022ae0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/chat/mcp/tools.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ def _get_chat_id(self):
5757
'application_id': self.application.id,
5858
'chat_user_id': str(uuid.uuid7()),
5959
'chat_user_type': ChatUserType.ANONYMOUS_USER,
60+
'ip_address': '-',
61+
'source': {"type": ChatSourceChoices.ONLINE.value},
6062
'debug': False
6163
}).open()
6264

0 commit comments

Comments
 (0)