@echo off chcp 65001 >nul echo ============================================================ echo Private-LLM Service - KI-Dokumentenanalyse echo Powered by PowerOn (FastAPI + Uvicorn) echo ============================================================ echo. REM Ollama starten mit CORS-Freigabe echo [1/3] Starte Ollama mit CORS-Freigabe... set OLLAMA_ORIGINS=* REM Versuche Ollama zu finden where ollama >nul 2>&1 if %errorlevel%==0 ( start /min ollama serve echo Ollama gestartet ) else ( if exist "%LOCALAPPDATA%\Programs\Ollama\ollama.exe" ( start /min "" "%LOCALAPPDATA%\Programs\Ollama\ollama.exe" serve echo Ollama gestartet ) else ( echo Ollama nicht gefunden - bitte manuell starten! echo Setze OLLAMA_ORIGINS=* vor dem Start ) ) timeout /t 2 /nobreak > nul REM Dependencies installieren echo [2/3] Installiere Python Dependencies... pip install -r requirements.txt --quiet echo [3/3] Starte FastAPI Server (Uvicorn)... echo. echo Server URL: http://localhost:5000 echo API Docs: http://localhost:5000/docs echo OpenAPI JSON: http://localhost:5000/openapi.json echo. echo Druecke Ctrl+C zum Beenden echo. REM FastAPI mit Uvicorn starten uvicorn app:app --host 0.0.0.0 --port 5000 --reload