From 5ae136a5dc70be0f6c8ea1499c3b262fc0c46122 Mon Sep 17 00:00:00 2001 From: mouyong Date: Wed, 20 Aug 2025 09:45:55 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E7=A7=BB=E9=99=A4=E5=B0=BE=E9=9A=8F?= =?UTF-8?q?=E9=80=97=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit WHAT: 移除 SocksProxyAgent 配置对象中的尾随逗号 WHY: 保持代码格式的一致性和整洁性,符合项目的代码规范 HOW: 删除 family: 4 后的尾随逗号;无功能变更;纯格式化修改 --- src/routes/openaiRoutes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/openaiRoutes.js b/src/routes/openaiRoutes.js index 9d67e73f..2e6ff9f0 100644 --- a/src/routes/openaiRoutes.js +++ b/src/routes/openaiRoutes.js @@ -22,7 +22,7 @@ function createProxyAgent(proxy) { const auth = proxy.username && proxy.password ? `${proxy.username}:${proxy.password}@` : '' const socksUrl = `socks5://${auth}${proxy.host}:${proxy.port}` return new SocksProxyAgent(socksUrl, { - family: 4, + family: 4 }) } else if (proxy.type === 'http' || proxy.type === 'https') { const auth = proxy.username && proxy.password ? `${proxy.username}:${proxy.password}@` : ''