Spaces:
Runtime error
Runtime error
Commit History
-
Improve latency path and 20-user scalability
- Add performance audit markdown with issues and fixes - Make DB pool and LLM concurrency configurable - Reduce chat context size with configurable history limit - Parallelize websocket broadcast sends - Avoid login failure from immediate /auth/me race Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>31a6bb6 -
feat: add Docker containerization, orchestration, and async database configuration
Copilot603b28a
-
feat: async backend refactor + upgraded deep repo audit
Copilot- Migrated from pymysql to asyncmy for fully async DB access - Converted database.py to use AsyncEngine and async_sessionmaker - Added composite indexes to UserSession and Message models - Refactored all routes (admin, chat, public, auth) to async/await - Eliminated N+1 query patterns with selectinload - Migrated OpenAI/OpenRouter to AsyncOpenAI to prevent event-loop blocking - Added asyncio.Semaphore(5) to cap concurrent LLM calls - DB session now released before LLM call and re-opened only to save result - Integrated slowapi for in-memory rate limiting without Redis - Migrated auth from localStorage JWT to HttpOnly SameSite=lax cookies - Refactored lib/api.ts to use credentials: include (no localStorage) - Rewrote AuthProvider to recover session via /auth/me cookie check - Added exponential backoff WebSocket reconnection in user/page.tsx - Fixed WebSocket user_id parsing to use explicit integer type - Added DEEP_REPO_AUDIT.md and UPGRADED_DEEP_REPO_AUDIT.md audit reports6b6e420
-
configured backend
cb22dd9