mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-10-12 18:52:25 +08:00
- Introduce `IsTerminalAuthError` and `NewTerminalAuthError` to identify permanent upstream authentication failures. - Return terminal auth errors from candidate selection and scheduling when all available credentials fail with unauthorized errors. - Support `BuildErrorResponseBodyWithError` to format terminal upstream auth errors as non-retryable `upstream_authentication_required` responses. - Propagate terminal error classifications and the `retryable` field across HTTP and WebSocket response handlers. Closes: #5645