Repository navigation
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
GenerationErrorhas a read-onlyrequestBytes: the UTF-8 byte length of the body of the last request sent,nullwhen none was sent or the client that threw did not say. It is passed through the constructor'soptions({ cause, requestBytes }); a provider that wraps aGenerationErrorin a new one passes it on the same way, asAttachmentFallbackandResponsesProviderdo (#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 onlyLLM API 550andfetch 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).