Skip to content

v0.2.21

Latest

Choose a tag to compare

@Phantivia Phantivia released this 03 Dec 23:56

A failed model request now says how large its request body was: the error and the log lines about the failure carry the byte count.

Changes for extension authors

  • GenerationError has a read-only requestBytes: the UTF-8 byte length of the body of the last request sent, null when none was sent or the client that threw did not say. It is passed through the constructor's options ({ cause, requestBytes }); a provider that wraps a GenerationError in a new one passes it on the same way, as AttachmentFallback and ResponsesProvider do (#471).

Core

  • Three log lines carry requestBytes: Provider attempt failed; retrying, Model service rejected a request with attachments; sent again without them, and the main loop's record of a failed generation, which also goes into the repeated-failure alert. A service whose body size limit was exceeded does not always answer 413: in the linked report the same 48.5 MiB request got 550, a reset connection or 413, and the log showed only LLM API 550 and fetch failed (ECONNRESET). No retry or fallback decision changes, and the usage ledger's format is unchanged (thanks @bikaqiumiao for the measurements in Pal-AI-Lab/Coopanion#857, #471).