@simonyea/holysheep-cli 1.7.129 → 1.7.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simonyea/holysheep-cli",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.130",
|
|
4
4
|
"description": "Claude Code/Cursor/Cline API relay for China — ¥1=$1, WeChat/Alipay payment, no credit card, no VPN. One command setup for all AI coding tools.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"openai-china",
|
|
@@ -222,9 +222,9 @@ function createConnectTunnel(proxyUrl, target, headers) {
|
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
// 等上游返回 first byte 的最大时间。Claude 长上下文(>200K tokens)的 prefill 时间
|
|
225
|
-
// 可以达到 30-90 秒,
|
|
226
|
-
// HS_CLAUDE_RESPONSE_TIMEOUT_MS
|
|
227
|
-
const RESPONSE_TIMEOUT_MS = Number(process.env.HS_CLAUDE_RESPONSE_TIMEOUT_MS) ||
|
|
225
|
+
// 可以达到 30-90 秒,120 秒留了充足裕量。默认 120 秒,可通过环境变量
|
|
226
|
+
// HS_CLAUDE_RESPONSE_TIMEOUT_MS 覆盖。旧值 300 秒导致异常时用户感知卡 5 分钟。
|
|
227
|
+
const RESPONSE_TIMEOUT_MS = Number(process.env.HS_CLAUDE_RESPONSE_TIMEOUT_MS) || 120000
|
|
228
228
|
// 上游 stream 已开始后,相邻两个 chunk 之间的最大间隔(覆盖 extended thinking 间歇)。
|
|
229
229
|
const STALL_TIMEOUT_MS = Number(process.env.HS_CLAUDE_STALL_TIMEOUT_MS) || 120000
|
|
230
230
|
|
|
@@ -261,7 +261,7 @@ function pipeWithCleanup(a, b) {
|
|
|
261
261
|
a.pipe(b)
|
|
262
262
|
b.pipe(a)
|
|
263
263
|
const close = () => {
|
|
264
|
-
if (
|
|
264
|
+
if (timer) clearTimeout(timer)
|
|
265
265
|
a.destroy()
|
|
266
266
|
b.destroy()
|
|
267
267
|
}
|