mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
refactor
This commit is contained in:
@@ -55,7 +55,7 @@ class AskAIEndpoint(BaseAPIView):
|
||||
def post(self, request, slug):
|
||||
task = request.data.get("task", "ASK_AI")
|
||||
context = request.data.get("context", "")
|
||||
user_prompt = request.data.get("user_prompt", "")
|
||||
user_prompt = request.data.get("text_input", "")
|
||||
|
||||
if not context or not user_prompt:
|
||||
return Response(
|
||||
|
||||
Reference in New Issue
Block a user