Skip to content

Conversation

ant31
Copy link
Contributor

@ant31 ant31 commented Oct 1, 2025

For input_file the filename parameter was recently made required in #1513.
This conflicts with many models outside of OpenAI, which do not require it.

This PR makes filename optional again to improve compatibility across the ecosystem.
For gpt* models, the server already handles missing filename errors, making the current client-side validation redundant.

@ant31 ant31 changed the title Fix: input_file's filename is now optional Fix: input_file's filename has optional field Oct 1, 2025
@seratch seratch changed the title Fix: input_file's filename has optional field fix: making input_file's filename optional in code for supporting non-OpenAI models Oct 1, 2025
Copy link
Member

@seratch seratch left a comment

Choose a reason for hiding this comment

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

For gpt* models, the server already handles missing filename errors, making the current client-side validation redundant.

Thanks, this makes sense. This code is used by LiteLLM integration too, so this client-side validation would be a blocker for some models.

@seratch seratch merged commit 02ebf0e into openai:main Oct 1, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants