(mimeType: string, provider: AttachmentProvider)
| 253 | } |
| 254 | |
| 255 | function normalizeProviderMimeType(mimeType: string, provider: AttachmentProvider): string { |
| 256 | if ((provider === 'anthropic' || provider === 'google') && isTextDocumentMimeType(mimeType)) { |
| 257 | return 'text/plain' |
| 258 | } |
| 259 | return mimeType |
| 260 | } |
| 261 | |
| 262 | function decodeBase64Text(base64: string, filename: string): string { |
| 263 | try { |
no test coverage detected