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

@@ -226,6 +226,7 @@ const handleResponses = async (req, res) => {
// 如果有代理,添加代理配置
if (proxyAgent) {
axiosConfig.httpsAgent = proxyAgent
axiosConfig.proxy = false
logger.info(`🌐 Using proxy for OpenAI request: ${ProxyHelper.getProxyDescription(proxy)}`)
} else {
logger.debug('🌐 No proxy configured for OpenAI request')