Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zheng.shen committed Dec 16, 2024
1 parent eca3825 commit 28154b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions seahub/ai/apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ def post(self, request):


class Translate(APIView):
# authentication_classes = (TokenAuthentication, SessionAuthentication)
# permission_classes = (IsAuthenticated,)
# throttle_classes = (UserRateThrottle,)
authentication_classes = (TokenAuthentication, SessionAuthentication)
permission_classes = (IsAuthenticated,)
throttle_classes = (UserRateThrottle,)

def post(self, request):
if not verify_ai_config():
Expand Down

0 comments on commit 28154b2

Please sign in to comment.