adrienbrdne commited on
Commit
3da3c5b
·
verified ·
1 Parent(s): a87616b

Update api.py

Browse files
Files changed (1) hide show
  1. api.py +1 -1
api.py CHANGED
@@ -410,7 +410,7 @@ async def gen_problem_description(request: ProblemDescriptionRequest):
410
  descriptions and a technical topic.
411
  """
412
  # Check if Gemini library was imported and configured
413
- if not genai or not genai.is_configured():
414
  logger.error("Gemini client is not available or configured.")
415
  raise HTTPException(status_code=503, detail="Service Unavailable: Gemini client not configured")
416
 
 
410
  descriptions and a technical topic.
411
  """
412
  # Check if Gemini library was imported and configured
413
+ if not genai:
414
  logger.error("Gemini client is not available or configured.")
415
  raise HTTPException(status_code=503, detail="Service Unavailable: Gemini client not configured")
416