Skip to content

@sqlrooms/ai / isTextAttachmentMediaType

Function: isTextAttachmentMediaType()

isTextAttachmentMediaType(mediaType): boolean

Whether a media type represents plain text or Markdown.

Parameters

ParameterType
mediaTypestring

Returns

boolean