构建本地 AI 技术栈
构建环境
选择 Python 版本
安装 LiteLLM + LangFuse
conda create -n litellm python==3.12.9 -y
conda activate litellm
pip install "litellm[proxy]" langfuse openai
LangFuse
部署(Docker)
git clone https://github.com/langfuse/langfuse.git
cd langfuse
docker compose up
注册用户
浏览器访问 http://localhost:3000/,单击 Sign up 注册一个新账户。
创建组织和工程


API Keys

LiteLLM
克隆 LiteLLM(可选)
git clone https://github.com/BerriAI/litellm
cd litellm
编辑配置 litellm_config.yaml