fix: 修复openai账号代理问题

This commit is contained in:
shaw
2025-09-18 17:39:45 +08:00
parent 507336a1ff
commit 43cfb0f4f3
3 changed files with 7 additions and 2 deletions

View File

@@ -6076,6 +6076,7 @@ router.post('/openai-accounts/exchange-code', authenticateAdmin, async (req, res
const proxyAgent = ProxyHelper.createProxyAgent(sessionData.proxy)
if (proxyAgent) {
axiosConfig.httpsAgent = proxyAgent
axiosConfig.proxy = false
}
// 交换 authorization code 获取 tokens