We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dde76c3 commit c27da16Copy full SHA for c27da16
1 file changed
api/main.py
@@ -68,6 +68,13 @@
68
# Initialize components
69
intent_parser = IntentParser()
70
source_selector = SourceSelector()
71
+
72
+# Debug API key status
73
+if GOV_API_KEY:
74
+ logger.info(f"API key loaded: {GOV_API_KEY[:10]}...{GOV_API_KEY[-4:] if len(GOV_API_KEY) > 14 else 'short'}")
75
+else:
76
+ logger.warning("No GOV_API_KEY found in environment variables")
77
78
query_planner = LiveQueryPlanner(DB_PATH, GOV_API_KEY) # Use live query planner
79
answer_synthesizer = AnswerSynthesizer()
80
@@ -255,6 +262,7 @@ async def health_check():
255
262
"version": "3.0.0",
256
263
"environment": ENVIRONMENT,
257
264
"database": db_status,
265
+ "api_key_status": "configured" if GOV_API_KEY else "missing",
258
266
"uptime_seconds": time.time() - start_time
259
267
}
260
268
0 commit comments