1 Commits

Author SHA1 Message Date
D8D Developer
257c831b0c fix: 部署时注入 OPENAI_BASE_URL 环境变量
All checks were successful
Docker Build and Push / build-and-push (push) Successful in 7m15s
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-20 15:51:31 +00:00

View File

@@ -150,6 +150,7 @@ async function main() {
// 构建环境变量 - 从当前 .env 读取关键配置注入容器 // 构建环境变量 - 从当前 .env 读取关键配置注入容器
const containerEnv: Record<string, string> = { const containerEnv: Record<string, string> = {
ANTHROPIC_BASE_URL: process.env.ANTHROPIC_BASE_URL || 'https://api.anthropic.com', ANTHROPIC_BASE_URL: process.env.ANTHROPIC_BASE_URL || 'https://api.anthropic.com',
OPENAI_BASE_URL: process.env.OPENAI_BASE_URL || 'https://api.openai.com',
}; };
const result = await deployProxy({ const result = await deployProxy({