跳到主要内容

贡献 - 用户界面

以下是如何在本地运行 LiteLLM UI 进行修改:

1. 克隆仓库

git clone https://github.com/BerriAI/litellm.git

2. 启动 UI + 代理

2.1 在端口 4000 上启动代理

告诉代理 UI 位于何处

export PROXY_BASE_URL="http://localhost:3000/"
cd litellm/litellm/proxy
python3 proxy_cli.py --config /path/to/config.yaml --port 4000

2.2 启动 UI

设置模式为开发 (这会假定代理运行在 localhost:4000)

export NODE_ENV="development" 
cd litellm/ui/litellm-dashboard

npm run dev

# starts on http://0.0.0.0:3000/ui

3. 访问本地 UI

http://0.0.0.0:3000/ui