@echo off REM docchecker service: kit (shift mode) or regular venv (one-user mode) cd /d %~dp0 set "SRV=%~dp0" if not exist "%SRV%static" set "SRV=%~dp0.." cd /d "%SRV%" set "KIT=%~dp0..\..\kit" set "PYEXE=" if exist "%KIT%\Python312\python.exe" ( set "PYEXE=%KIT%\Python312\python.exe" set "PYTHONPATH=%KIT%\site" ) if not defined PYEXE set "PYEXE=%~dp0venv\Scripts\python.exe" if not exist "%PYEXE%" ( echo Python not found: run install.bat from delivery first echo ^(or setup_online.bat on a computer with internet^) echo If venv was copied from another computer - delete the venv folder echo and recreate it with install.bat pause exit /b 1 ) set LT_URL=http://127.0.0.1:8010 set LLM_BASE_URL=http://127.0.0.1:11434/v1 set LLM_MODEL=qwen3-4b-instruct start "docchecker" "%PYEXE%" -m uvicorn app:app --host 127.0.0.1 --port 8011 set "OK=" for /l %%i in (1,1,6) do ( if not defined OK curl -s --max-time 2 -o nul -w "%%{http_code}" http://127.0.0.1:8011/api/health 2>nul | findstr "200" >nul && set OK=1 if not defined OK timeout /t 2 /nobreak >nul ) if not defined OK ( echo Служба не поднялась за 12 сек — смотри окно docchecker, там причина pause exit /b 1 ) start http://127.0.0.1:8011