Skip to content

@sqlrooms/ai-core / getChatAttachmentText

Function: getChatAttachmentText() ​

getChatAttachmentText(attachment): string | undefined

Decodes the text payload from a base64 or percent-encoded data URL.

Parameters ​

ParameterType
attachmentFileUIPart

Returns ​

string | undefined