(attachment: PreparedProviderAttachment)
| 626 | } |
| 627 | |
| 628 | function getBedrockDocumentFormat(attachment: PreparedProviderAttachment): string { |
| 629 | if (attachment.extension === 'md' || attachment.mimeType === 'text/markdown') return 'md' |
| 630 | if (attachment.extension === 'txt' || attachment.mimeType === 'text/plain') return 'txt' |
| 631 | return attachment.extension || 'txt' |
| 632 | } |
| 633 | |
| 634 | function getBedrockImageFormat(attachment: PreparedProviderAttachment): string { |
| 635 | return attachment.extension === 'jpg' ? 'jpeg' : attachment.extension |
no outgoing calls
no test coverage detected