Repository navigation
An error now carries the API's message, not the whole JSON body.
- Before:
the request was rejected as invalid: {"detail":{"error_type":"api_usage_error","message":"Invalid request."}} - After:
the request was rejected as invalid: Invalid request.
The client reads detail.message (TypeSafe, measured on 2026-10-16 for a 400 and a 401), error.message (OpenRouter, measured on 2026-10-16 for a 401), or a string detail. Any other body, such as a proxy's HTML page, still comes through as it was, cut at 400 characters.
The prefixes HTTP {status}: , the API key was rejected: , rate limited: and the others do not change.