input_too_large is a catalog version 1 client error.
What to do
Reduce the input to at most 25,000 Unicode characters before retrying.Use the structured fields rather than parsing the message. Provider errors, prompts, prose, secrets, and arbitrary exception details are never included in this public error.