mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-06 16:30:08 +08:00
Instead of replacing asyncio.create_subprocess_exec with subprocess.run (which loses real-time streaming and cancellation), fix the root cause: set WindowsProactorEventLoopPolicy before uvicorn starts so that create_subprocess_exec works correctly on Windows. This preserves the original async streaming renderer while fixing Windows compatibility at the event loop level. Made-with: Cursor