(file: UserFile, mimeType: string)
| 248 | } |
| 249 | |
| 250 | function getAttachmentExtension(file: UserFile, mimeType: string): string { |
| 251 | if (mimeType === 'text/markdown') return 'md' |
| 252 | return getExtensionFromMimeType(mimeType) || getFileExtension(file.name) |
| 253 | } |
| 254 | |
| 255 | function normalizeProviderMimeType(mimeType: string, provider: AttachmentProvider): string { |
| 256 | if ((provider === 'anthropic' || provider === 'google') && isTextDocumentMimeType(mimeType)) { |
no test coverage detected