()
| 45 | const fileData = part?.file?.file_data || ''; |
| 46 | return part?.type === 'file' && ( |
| 47 | /\.pdf$/i.test(filename) || |
| 48 | (typeof fileData === 'string' && fileData.startsWith('data:application/pdf')) |
| 49 | ); |
| 50 | }); |
| 51 | }); |
| 52 | } |
| 53 | |
| 54 | function applyPdfFileParserPlugin(body, messages = []) { |
| 55 | if (!hasPdfContent(messages)) return; |
| 56 | body.plugins = [ |
nothing calls this directly
no test coverage detected