mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-19 06:30:54 +08:00
trimErr cut the error text at byte 300, which can split a multi-byte character. The result is stored as llm_profile_health.last_error, and PostgreSQL rejects the invalid UTF-8, so the breaker state of a profile whose provider answers in Chinese is never persisted and the write is retried every second.