feat: convert CAF audio and GIF attachments for model compatibility#73
feat: convert CAF audio and GIF attachments for model compatibility#73mfzeidan wants to merge 1 commit into
Conversation
iMessage voice messages use Opus-in-CAF format which isn't supported by OpenAI Whisper. GIF images aren't accepted by all model APIs (e.g. xAI). This adds ffmpeg-based conversion: .caf→.m4a for audio, .gif→.png (first frame) for images. Converted files are cached alongside originals. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Thanks @mfzeidan. I landed a maintainer rewrite on main in 8dcb9d0 and credited you in the commit/changelog. The PR was directionally right, but I did not merge it as-is because current main has a batched attachment metadata path that the PR missed, it hardcoded The landed version keeps conversion opt-in via Proof: local |
iMessage voice messages use Opus-in-CAF format which isn't supported by OpenAI Whisper. GIF images aren't accepted by all model APIs (e.g. xAI). This adds ffmpeg-based conversion: .caf→.m4a for audio, .gif→.png (first frame) for images. Converted files are cached alongside originals.