You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor: move service/llm_keys.py out of the service layer (CODE_HEALTH #4) #41
cognifold.service.llm_keys is imported by five packages below the service layer: agent/ (7 sites), query/ (incl. query/llm.py:16), utils/, embeddings/, and config.py:161 — meaning the root config module depends on the HTTP service layer, inverting the documented layering (docs/ARCHITECTURE.md §Module Dependencies). A visible symptom: 287 function-local from cognifold... imports across src/ exist to dodge the resulting cycles.
llm_keys.py has no FastAPI dependency — it is simply misfiled.
Fix direction (small + mechanical, good first refactor):
Activity