Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions apps/application/views/chat_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def get(self, request: Request, application_id: str, current_page: int, page_siz
page_size=page_size))

class Operate(APIView):
authentication_classes = [TokenAuth]
authentication_classes = [AllTokenAuth]

@action(methods=['DELETE'], detail=False)
@swagger_auto_schema(operation_summary=_("Client deletes conversation"),
Expand Down Expand Up @@ -324,7 +324,7 @@ def get(self, request: Request, application_id: str, chat_id: str):
'chat_id': chat_id, 'order_asc': request.query_params.get('order_asc')}).list())

class Page(APIView):
authentication_classes = [TokenAuth]
authentication_classes = [AllTokenAuth]

@action(methods=['GET'], detail=False)
@swagger_auto_schema(operation_summary=_("Get the conversation history list by page"),
Expand All @@ -348,7 +348,7 @@ def get(self, request: Request, application_id: str, chat_id: str, current_page:
page_size))

class Vote(APIView):
authentication_classes = [TokenAuth]
authentication_classes = [AllTokenAuth]

@action(methods=['PUT'], detail=False)
@swagger_auto_schema(operation_summary=_("Like, Dislike"),
Expand Down Expand Up @@ -392,7 +392,7 @@ def get(self, request: Request, application_id: str, chat_id: str, chat_record_i
data={'chat_id': chat_id, 'chat_record_id': chat_record_id}).get())

class Improve(APIView):
authentication_classes = [TokenAuth]
authentication_classes = [AllTokenAuth]

@action(methods=['PUT'], detail=False)
@swagger_auto_schema(operation_summary=_("Annotation"),
Expand Down Expand Up @@ -481,7 +481,7 @@ def delete(self, request: Request, application_id: str, chat_id: str, chat_recor
'paragraph_id': paragraph_id}).delete())

class UploadFile(APIView):
authentication_classes = [TokenAuth]
authentication_classes = [AllTokenAuth]
parser_classes = [MultiPartParser]

@action(methods=['POST'], detail=False)
Expand Down
Loading