Utility function for ChatModelProviders. Parses a base64 data URL into a typed array or string.
An object containing the parsed data and mime type, or undefined if the data URL is invalid.
Don't use data content blocks. Use ContentBlock.Multimodal.Data instead.
Utility function for ChatModelProviders. Parses a base64 data URL into a typed array or string.
The parsed data and mime type, or undefined if the data URL is invalid.
Don't use data content blocks. Use ContentBlock.Multimodal.Data instead.
Utility function for ChatModelProviders. Parses a base64 data URL into a typed array or string.
Param: dataUrl
The base64 data URL to parse.
Param: asTypedArray
Whether to return the data as a typed array.
Returns
The parsed data and mime type, or undefined if the data URL is invalid.
Deprecated
Don't use data content blocks. Use ContentBlock.Multimodal.Data instead.