mirror of
https://github.com/mudler/LocalAI.git
synced 2026-11-06 04:23:15 -05:00
localConnectorCall and the kinds lookup turned every error from the connector source into a bare ErrUnavailable. VerifyTokenWithMe treats that as "could not tell" and saves the binding, so a definite refusal by the add-on was indistinguishable from an outage, and the cause was lost. An add-on refusal (invalid request, or denied for this person) now keeps its type through Refused. Other errors still read as ErrUnavailable but wrap the cause, so errors.Is and logs see it. The forwarding carrier maps the owner's 400 back to ErrInvalidRequest instead of ErrUnavailable. Assisted-by: Claude Code:claude-sonnet-5-5 Signed-off-by: Ettore Di Giacinto <mudler@localai.io>