DevodG commited on
Commit
b483d75
·
1 Parent(s): 5fbc9f2

fix: update health check to include kaggle and learning status

Browse files
Files changed (1) hide show
  1. backend/app/main.py +5 -5
backend/app/main.py CHANGED
@@ -1876,20 +1876,20 @@ def create_app() -> FastAPI:
1876
  "features": {
1877
  "simulation": os.getenv("SIMULATION_ENABLED", "true") == "true",
1878
  "sentinel": os.getenv("SENTINEL_ENABLED", "true") == "true",
1879
- "learning": os.getenv("LEARNING_ENABLED", "false") == "true",
1880
- "adaptive": os.getenv("ADAPTIVE_INTELLIGENCE_ENABLED", "false")
1881
- == "true",
1882
- "training": os.getenv("CONTINUOUS_TRAINING_ENABLED", "false") == "true",
1883
  "curiosity": os.getenv("CURIOSITY_ENGINE_ENABLED", "false") == "true",
1884
  },
1885
  "data_sources": {
1886
- "yfinance": True, # always available, no key needed
1887
  "alphavantage": bool(os.getenv("ALPHAVANTAGE_API_KEY")),
1888
  "finnhub": bool(os.getenv("FINNHUB_API_KEY")),
1889
  "fmp": bool(os.getenv("FMP_API_KEY")),
1890
  "eodhd": bool(os.getenv("EODHD_API_KEY")),
1891
  "tavily": bool(os.getenv("TAVILY_API_KEY")),
1892
  "newsapi": bool(os.getenv("NEWS_API_KEY") or os.getenv("NEWSAPI_KEY")),
 
1893
  },
1894
  "persistence": {
1895
  "hf_store": bool(os.getenv("HF_STORE_REPO")),
 
1876
  "features": {
1877
  "simulation": os.getenv("SIMULATION_ENABLED", "true") == "true",
1878
  "sentinel": os.getenv("SENTINEL_ENABLED", "true") == "true",
1879
+ "learning": True, # Enabled by persistence manager
1880
+ "adaptive": os.getenv("ADAPTIVE_INTELLIGENCE_ENABLED", "false") == "true",
1881
+ "training": bool(os.getenv("KAGGLE_CONFIG")),
 
1882
  "curiosity": os.getenv("CURIOSITY_ENGINE_ENABLED", "false") == "true",
1883
  },
1884
  "data_sources": {
1885
+ "yfinance": True,
1886
  "alphavantage": bool(os.getenv("ALPHAVANTAGE_API_KEY")),
1887
  "finnhub": bool(os.getenv("FINNHUB_API_KEY")),
1888
  "fmp": bool(os.getenv("FMP_API_KEY")),
1889
  "eodhd": bool(os.getenv("EODHD_API_KEY")),
1890
  "tavily": bool(os.getenv("TAVILY_API_KEY")),
1891
  "newsapi": bool(os.getenv("NEWS_API_KEY") or os.getenv("NEWSAPI_KEY")),
1892
+ "kaggle": bool(os.getenv("KAGGLE_CONFIG")),
1893
  },
1894
  "persistence": {
1895
  "hf_store": bool(os.getenv("HF_STORE_REPO")),