Skip to main content

贡献 - UI

以下是如何在本地运行 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

# 在 http://0.0.0.0:3000/ui 启动

3. 访问本地 UI

http://0.0.0.0:3000/ui
优云智算