Files
langchaingo/llms
Sergey Kozyrenko 28f73650cd fix(openai): stop truncating a provider error before it is parsed
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
2026-08-23 10:41:16 +07:00
..
2025-06-22 02:27:21 +03:00