mirror of
https://gitcode.com/JianFeeeee/HomeAgent.git
synced 2026-09-21 17:38:10 +00:00
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:
@ -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},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user