Skip to content

@sqlrooms/ai-core / isTextAttachmentMediaType

Function: isTextAttachmentMediaType() ​

isTextAttachmentMediaType(mediaType): boolean

Whether a media type represents plain text or Markdown.

Parameters ​

ParameterType
mediaTypestring

Returns ​

boolean