adrienbrdne commited on
Commit
b92653a
·
verified ·
1 Parent(s): 5ceabf4

Update api.py

Browse files
Files changed (1) hide show
  1. api.py +2 -2
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 descriptions_map or not challenges_map or not technical_topic:
507
- raise HTTPException(status_code=400, detail="Missing required fields: descriptions, challenges, or technical_topic.")
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