yabeskn commited on
Commit
a3398cd
·
1 Parent(s): 1bad990

fix: check RAW_GEMINI_KEYS for AI status config in health check

Browse files
Files changed (1) hide show
  1. app/services/ai_service.py +1 -1
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 = [