Skip to content

@sqlrooms/ai / 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