bapi143 commited on
Commit
69e6e93
·
1 Parent(s): b626083

feat: expose detected env names in status for diagnostic

Browse files
Files changed (1) hide show
  1. backend/main.py +2 -0
backend/main.py CHANGED
@@ -155,6 +155,7 @@ async def get_model_info():
155
 
156
  @app.get("/api/v1/status", tags=["System"])
157
  async def api_status():
 
158
  return {
159
  "status": "online",
160
  "version": settings.app_version,
@@ -162,6 +163,7 @@ async def api_status():
162
  "gemini_active": inference_engine.is_configured(),
163
  "ai_model": "Google Gemini 3.8 Flash",
164
  "ai_active": inference_engine.is_configured(),
 
165
  "supported_crops_count": "Universal"
166
  }
167
 
 
155
 
156
  @app.get("/api/v1/status", tags=["System"])
157
  async def api_status():
158
+ env_keys = [k for k in os.environ.keys() if any(w in k.upper() for w in ["GEMINI", "GOOGLE", "KEY", "TOKEN", "SECRET"])]
159
  return {
160
  "status": "online",
161
  "version": settings.app_version,
 
163
  "gemini_active": inference_engine.is_configured(),
164
  "ai_model": "Google Gemini 3.8 Flash",
165
  "ai_active": inference_engine.is_configured(),
166
+ "detected_env_names": env_keys,
167
  "supported_crops_count": "Universal"
168
  }
169