Accept wrapped text content from LLM providers (#31048)

Some providers sometimes send `{ "type": "text", "text": ... }` instead
of just the text as a string. Now we accept those instead of erroring.

Release Notes:

- N/A
4bb04cef9dRichard Feldman committed on 5/20/2025, 8:50:02 PM· committed by GitHubparent89700c3
9 files changedLine totals unavailable