Patch Changes
-
#2379
717d1c8Thanks @walln! - Convert audio file parts in prompts into OpenRouterinput_audiocontent blocks.Previously, every non-image file part was converted into a generic
filecontent block. OpenRouter only accepts audio as base64-encodedinput_audiocontent parts, so audio attachments were rejected or mishandled by the upstream provider.Audio file parts with a recognized
mediaType(aac, aiff, flac, m4a, mp3, ogg, pcm16, pcm24, and wav) are now converted intoinput_audioblocks. Unsupported audio media types andURLaudio data fail with anAiErrorsince OpenRouter requires base64-encoded audio data and does not fetch audio URLs. -
Updated dependencies [
87f52ba,b8ee07f,867c0d7,b93bc6c,57d387f,bacca41,0f8ac79,25b4482,9cf3a25,8def767]:- effect@4.0.0-beta.84