Skip to content

fix(closes OPEN-9006): multimodal feature not working in production w…#595

Merged
whoseoyster merged 1 commit intomainfrom
cid/s3-file-upload-bug
Feb 13, 2026
Merged

fix(closes OPEN-9006): multimodal feature not working in production w…#595
whoseoyster merged 1 commit intomainfrom
cid/s3-file-upload-bug

Conversation

@gustavocidornelas
Copy link
Contributor

…ith audio inputs

Pull Request

Summary

The latest refactors to _upload.py introduced an issue for S3 uploads. They were failing with:

Failed to upload attachment XXX: 400 Client Error: Bad Request for url: https://s3.us-west-2.amazonaws.com/...

S3 presigned POST requires the file field to be last in the multipart body — all policy fields must precede it. The existing upload_blob_s3 does this correctly (adds file to the dict after the policy fields), but
upload_bytes_multipart had file first with **fields spread after, which only worked before because it was never used for S3 uploads with policy fields.

Changes

  • Updates to _upload.py

Context

OPEN-9006: Multimodal feature not working in production with audio inputs

Testing

  • Manual testing

@whoseoyster whoseoyster merged commit fe2398d into main Feb 13, 2026
5 checks passed
@whoseoyster whoseoyster deleted the cid/s3-file-upload-bug branch February 13, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants