Spaces:
Sleeping
Sleeping
fix: check RAW_GEMINI_KEYS for AI status config in health check
Browse files
app/services/ai_service.py
CHANGED
|
@@ -1236,7 +1236,7 @@ def sanitize_ai_output(results: List[Dict[str, Any]], max_items: int = 10) -> Li
|
|
| 1236 |
|
| 1237 |
def check_ai_status() -> Dict[str, Any]:
|
| 1238 |
"""Check AI availability. Called by /health endpoint."""
|
| 1239 |
-
gemini_configured = bool(GEMINI_API_KEY)
|
| 1240 |
active_tiers = []
|
| 1241 |
if gemini_configured and not AI_DISABLED:
|
| 1242 |
active_tiers = [
|
|
|
|
| 1236 |
|
| 1237 |
def check_ai_status() -> Dict[str, Any]:
|
| 1238 |
"""Check AI availability. Called by /health endpoint."""
|
| 1239 |
+
gemini_configured = bool(GEMINI_API_KEY or RAW_GEMINI_KEYS)
|
| 1240 |
active_tiers = []
|
| 1241 |
if gemini_configured and not AI_DISABLED:
|
| 1242 |
active_tiers = [
|