mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
* fix(batch): validate non-image inputs by modality Batch processing ran validateImageBuffer and the image-only decode chain on every uploaded file, so audio, video, and document tools rejected all inputs with "Invalid image: Unrecognized image format" and returned 422 "All files failed processing". Resolve the tool's modality and route non-image files through their own input handler (inputHandlerFor(modality).prepare), mirroring the single-file path. The image batch path is unchanged. * fix(pipeline): validate non-image inputs by modality The pipeline /execute and /batch routes validated every upload with validateImageBuffer and ran the image-only decode chain, so audio, video, and document pipelines were rejected with "Invalid image: Unrecognized image format". Resolve the input modality from the first step's tool and route non-image inputs through their modality handler, mirroring the batch and single-file paths. Image pipelines are unchanged.