fix: eliminate event-loop-blocking sync calls in async FastAPI routes (#106)

* feat: add async DB wrapper and eliminate event-loop blocking

* fix: rewrite llm_client.py with native async httpx - removes urlopen and run_in_executor

* fix: rewrite routes/coach.py - replace all sync DB/HTTP with async (aiosqlite + httpx)

* fix: add async DB shutdown hook to lab_api.py

* feat: add aiosqlite>=0.19.0 to requirements
This commit is contained in:
KoalaTrapLord authored and GitHub committed 2026-03-25 19:17:41 -04:00
1 parent cf7c872e12
commit af2a71d1a5
5 files changed
+776 -724

No files matched your search

+421 -594
View File
File diff suppressed because it is too large. Load diff