fix: Debugging dialogue error (#3440)
This commit is contained in:
parent
bc87101bc8
commit
56932b3afd
@ -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
Block a user