fix: bump llm http client timeout 120s→180s for llmsproxy AUTO chain failover

The local llmsproxy AUTO chain tries 6+ slots across 3 tiers sequentially.
Each failed tier incurs busyWait (2s) + upstream timeout, so a full chain
exhaustion can exceed 120s. The llmsproxy logs showed 143 'context canceled'
errors for the homeagent key — the client gave up before the chain finished.

180s gives the chain enough room to complete before the client timeout fires.
Also remove stale backup files under /usr/local/bin/.
This commit is contained in:
dev
2026-08-25 00:34:25 +08:00
parent ece06b0375
commit 22de000f23
6 changed files with 810 additions and 35 deletions

View File

@ -298,7 +298,10 @@ func NewLuaAdaptedProvider(cfg BaseConfig, vm *luaVM.VM, name, adapter string) *
cfg: cfg,
vm: vm,
adapter: adapter,
client: &http.Client{Timeout: 120 * time.Second},
// 180s: llmsproxy 的 AUTO 链会串行尝试多个 tier每个失败 tier 耗
// busyWait(2s)+上游超时120s 曾导致网关侧记录大量 "context canceled"
// (客户端先放弃)。放宽到 180s 给链式 failover 留足时间。
client: &http.Client{Timeout: 180 * time.Second},
}
}