Repository navigation
v0.29.2
This patch release lets embedding callers tell a rejected input from a misconfigured endpoint, so a wrong model name or unsupported field no longer looks like a corpus of bad documents.
Upgrade notes:
embedclient.APIErrorhas a newReasonfield. Kit sets it from the HTTP status and, for 400, 413 and 422, from the provider's error code or message, which it then discards. Body text never appears in the error. (#138)InputRejectedis now true only when the reason is input too long or content policy. A 400 that does not name an input problem, such as an unknown model, an unsupporteddimensionsfield or an unrecognized message, is no longer an input rejection. Code or tests that buildAPIError{StatusCode: 400}and expectInputRejected()to be true must now setReason.CredentialsRejectedandRetryablestill read the status alone. (#138)