ARTEX/llmpool
BaaRai 6568a8eb44 fix(llm): record breaker health on every task LLM path
The /system/llm/ badge read llm_profile_health, which only the failover
Pool wrote. A task pinned to an explicit chain, a bound agent with
failover off, and the global provider all call the provider directly, so
a dead backend stayed "Healthy".

One policy now lives in llmpool.Registry.RecordCall, used by the Pool and
by the task runtimes: a success clears the state, a failover-eligible
failure trips it, context cancellation and deterministic 400s do not, and
a stream that already delivered output is left alone. The selection
carries the profile whose breaker the call updates, and a provider
already wrapped in the Pool reports nothing to avoid double counting.

The LLM recording page also explains an empty list while the llm_record
toggle is off, after the settings call resolves.

Originally reported in #257.
2026-11-18 01:31:18 +01:00
..
health.go fix(llm): record breaker health on every task LLM path 2026-11-18 01:31:18 +01:00
health_order_test.go Keep circuit-breaker writes in state order and flush them before the database closes. 2026-11-17 22:39:53 +01:00
health_policy_test.go feat(llm): 五层重试的次数与间隔可配 2026-09-09 13:35:04 -04:00
health_record_test.go fix(llm): record breaker health on every task LLM path 2026-11-18 01:31:18 +01:00
pool.go fix(llm): record breaker health on every task LLM path 2026-11-18 01:31:18 +01:00
pool_test.go feat(llm): 每个 LLM 配置支持流式/非流式切换(默认流式) 2026-08-25 10:49:47 -04:00