mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-01-23 05:08:06 -05:00
### CHANGES - Update toMessages to handle multi-content messages with text and attachments - Add contentBlocksFromMessage to convert message parts to Anthropic blocks - Implement support for image URLs including data URLs and base64 images - Add PDF attachment handling via data URLs and URL-based PDFs - Introduce parseDataURL for extracting MIME type and data from data URLs - Create normalizeImageMimeType to standardize supported image MIME types - Add isPDFURL to detect PDF files from URL paths - Refactor system content accumulation to use text extraction from parts - Update tests to verify PDF attachment processing in multi-content messages