mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 19:52:42 +00:00
fix: 修复openai账号代理问题
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user