Skip to content

1.3.1

Latest

Choose a tag to compare

@AboveColin AboveColin released this 16 Oct 14:12
0a44d8d

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.