KrishnaCosmic commited on
Commit
478c114
·
1 Parent(s): 548930f

finalising

Browse files
Files changed (1) hide show
  1. main.py +12 -1
main.py CHANGED
@@ -142,7 +142,18 @@ async def health_check():
142
  "status": "healthy",
143
  "service": "ai-engine-full",
144
  "version": "2.0.0",
145
- "timestamp": datetime.now(timezone.utc).isoformat()
 
 
 
 
 
 
 
 
 
 
 
146
  }
147
 
148
 
 
142
  "status": "healthy",
143
  "service": "ai-engine-full",
144
  "version": "2.0.0",
145
+ "timestamp": datetime.now(timezone.utc).isoformat(),
146
+ "api_key_configured": bool(os.environ.get('API_KEY', ''))
147
+ }
148
+
149
+
150
+ @app.get("/debug/env")
151
+ async def debug_env(auth: dict = Depends(require_api_key_or_auth)):
152
+ """Debug endpoint to show environment variable configuration."""
153
+ return {
154
+ "api_key_set": bool(os.environ.get('API_KEY', '')),
155
+ "api_key_value": os.environ.get('API_KEY', 'NOT_SET'),
156
+ "jwt_secret_set": bool(os.environ.get('JWT_SECRET', '')),
157
  }
158
 
159