Update api.py
Browse files
api.py
CHANGED
@@ -503,8 +503,8 @@ async def create_several_probdesc(request: CreateSeveralProbDescRequest):
|
|
503 |
technical_topic = request.technical_topic
|
504 |
|
505 |
# Basic input validation
|
506 |
-
if not
|
507 |
-
raise HTTPException(status_code=400, detail="Missing required fields:
|
508 |
|
509 |
logger.info(f"Received request to generate multiple problem descriptions for topic: {technical_topic}")
|
510 |
|
|
|
503 |
technical_topic = request.technical_topic
|
504 |
|
505 |
# Basic input validation
|
506 |
+
if not key_issues_list or not technical_topic:
|
507 |
+
raise HTTPException(status_code=400, detail="Missing required fields: keys_issues or technical_topic.")
|
508 |
|
509 |
logger.info(f"Received request to generate multiple problem descriptions for topic: {technical_topic}")
|
510 |
|