Skip to content

Conversation

@LuminaX-alt
Copy link
Owner

…alls (openai#2472)

Summary

Fixes openai#2472 by normalizing Files API references when using uploaded files (e.g., PDFs) in streaming Responses API calls.

Changes

  • Added normalization for input to convert file objects into file_id references.
  • Ensures PDFs and other file types uploaded via Files API work in streaming calls.

Why

The API expects file references (file_id), but the SDK previously sent full file objects, causing 400 Bad Request errors.

  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Additional context & links

…alls (openai#2472) ### Summary Fixes openai#2472 by normalizing Files API references when using uploaded files (e.g., PDFs) in streaming Responses API calls. ### Changes - Added normalization for `input` to convert file objects into `file_id` references. - Ensures PDFs and other file types uploaded via Files API work in streaming calls. ### Why The API expects file references (`file_id`), but the SDK previously sent full file objects, causing 400 Bad Request errors.
Copy link

@slavingia slavingia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no

@wtfsayo
Copy link

wtfsayo commented Aug 7, 2025

umm

Copy link

@rickpr rickpr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried this but couldn't use it because the indentation is wrong. Could you write some tests to show how this would work if it's fixed?

@LuminaX-alt
Copy link
Owner Author

LuminaX-alt commented Aug 7, 2025 via email

@LuminaX-alt
Copy link
Owner Author

LuminaX-alt commented Aug 8, 2025 via email

@LuminaX-alt
Copy link
Owner Author

LuminaX-alt commented Aug 8, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants