Update api.py
Browse files
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
|
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 |
|