add prodcut ai chat bot

This commit is contained in:
Parsa Nazer
2025-01-01 23:08:05 +03:30
parent fe33bcaa52
commit 90b82a97d9
17 changed files with 320 additions and 11 deletions
+4 -3
View File
@@ -13,6 +13,7 @@ import ghasedak_sms
class SendOTPView(APIView):
permission_classes = [AllowAny]
@extend_schema(
tags=["Authentication"],
request={
"application/json": {
"type": "object",
@@ -68,9 +69,9 @@ class SendOTPView(APIView):
class CustomTokenObtainPairView(TokenObtainPairView):
serializer_class = CustomTokenObtainPairSerializer
# @extend_schema(
# tags=["Authentication"]
# )
@extend_schema(
tags=["Authentication"]
)
def post(self, request, *args, **kwargs):
phone = request.data.get("phone")
otp = request.data.get("otp")