mirror of
https://github.com/vxcontrol/langchaingo.git
synced 2026-08-24 21:31:28 -04:00
28f73650cd
statusError capped the body at 2 KiB and then unmarshalled, so any error longer than that failed to parse and the caller received a raw JSON fragment cut mid-object instead of the provider's message. Azure content-filter and structured-output responses, which echo the schema, routinely exceed it. The cap moves to 64 KiB: still bounded, but above the largest error body these providers send. The existing cap test is written against the constant and keeps holding. PAGI-132