v0.9.1
Fix: Clear error messages for binary/image files (#48)
When attaching a non-text file with -f, apfel now gives specific, helpful errors instead of the misleading "cannot read file":
- Image files (
.jpg,.jpeg,.png,.heic, etc.):cannot attach image: file.jpg -- the on-device model is text-only (no vision). Try: tesseract file.jpg stdout | apfel "describe this" - Binary files (
.pdf,.zip,.mp4, etc.):cannot attach binary file: file.zip -- only text files are supported - Unknown binary:
file is not valid UTF-8 text: file.dat (binary file?)
Update
brew upgrade apfel