chore: add MCP token validation to chat post method
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
CaptainB 2025-12-23 13:46:53 +08:00
parent 4d28001601
commit 948c41a563

View File

@ -155,6 +155,7 @@ class ChatView(APIView):
responses=None,
tags=[_('Chat')] # type: ignore
)
@mcp_token_required # 添加MCP令牌验证
def post(self, request: Request, chat_id: str):
return ChatSerializers(data={'chat_id': chat_id,
'chat_user_id': request.auth.chat_user_id,