mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
Merge remote-tracking branch 'origin/v2' into v2
This commit is contained in:
commit
f0ef375010
|
|
@ -134,9 +134,5 @@ class ChatView(APIView):
|
|||
responses=None,
|
||||
tags=[_('Application')] # type: ignore
|
||||
)
|
||||
@has_permissions(
|
||||
PermissionConstants.APPLICATION_DEBUG,
|
||||
RoleConstants.USER.get_workspace_role(),
|
||||
RoleConstants.WORKSPACE_MANAGE.get_workspace_role())
|
||||
def post(self, request: Request, chat_id: str):
|
||||
return DebugChatSerializers(data={'chat_id': chat_id}).chat(request.data)
|
||||
|
|
|
|||
Loading…
Reference in New Issue