fix: Debugging dialogue error (#3440)

This commit is contained in:
shaohuzhang1 2025-07-01 10:15:01 +08:00 committed by GitHub
parent bc87101bc8
commit 56932b3afd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)