Skip to content

Commit 948c41a

Browse files
committed
chore: add MCP token validation to chat post method
1 parent 4d28001 commit 948c41a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/chat/views/chat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ class ChatView(APIView):
155155
responses=None,
156156
tags=[_('Chat')] # type: ignore
157157
)
158+
@mcp_token_required # 添加MCP令牌验证
158159
def post(self, request: Request, chat_id: str):
159160
return ChatSerializers(data={'chat_id': chat_id,
160161
'chat_user_id': request.auth.chat_user_id,

0 commit comments

Comments
 (0)