mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-25 17:22:55 +00:00
chore: add MCP token validation to chat post method
This commit is contained in:
parent
4d28001601
commit
948c41a563
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue