Patch Changes
-
1ffa1d2: feat(xai): speech timestamps, pronunciation replacements, provider metadata, and error parsing
- Add
withTimestampsandreplaceprovider options for text to speech. With
withTimestamps, the JSON envelope is decoded and the audio returned as
usual, while duration, content type, and character-level alignment are
exposed viaproviderMetadata.xai. - Return
providerMetadata.xai.traceId(from thex-trace-idresponse
header) on every speech response. - Parse the text to speech error shape (
{"error":"..."}) soAPICallError
messages carry xAI's real error detail instead of the HTTP reason phrase.
- Add