Beitragen - UI
Hier erfahren Sie, wie Sie die LiteLLM UI lokal ausführen können, um Änderungen vorzunehmen.
1. Klonen Sie das Repo​
git clone https://github.com/BerriAI/litellm.git
2. Starten Sie die UI + Proxy​
2.1 Starten Sie den Proxy auf Port 4000
Teilen Sie dem Proxy mit, wo sich die UI befindet.
export PROXY_BASE_URL="https://:3000/"
cd litellm/litellm/proxy
python3 proxy_cli.py --config /path/to/config.yaml --port 4000
2.2 Starten Sie die UI
Setzen Sie den Modus auf Entwicklung (dies geht davon aus, dass der Proxy unter localhost:4000 läuft).
export NODE_ENV="development"
cd litellm/ui/litellm-dashboard
npm run dev
# starts on http://0.0.0.0:3000/ui
3. Gehen Sie zur lokalen UI​
http://0.0.0.0:3000/ui