---
type: email
from: Antoine Legrand <notifications@github.com>
subject: [openai/openai-agents-python] Fix: input_file's filename is now

 optional (PR #1839)
received: 2026-03-06 07:48:25
date_header: Wed, 01 Oct 2025 05:56:05 -0700
priority: normal
status: awaiting_approval
uid: 31702
---

## Email Content

**From:** Antoine Legrand <notifications@github.com>
**Subject:** [openai/openai-agents-python] Fix: input_file's filename is now

 optional (PR #1839)
**Date:** Wed, 01 Oct 2025 05:56:05 -0700

### Body (preview)

For input_file the  `filename` parameter was recently made required in https://github.com/openai/openai-agents-python/pull/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.

You can view, comment on, or merge this pull request online at:



  https://github.com/openai/openai-agents-python/pull/1839



-- Commit Summary --



  * Fix: input_file&#39;s filename is now optional



-- File Changes --



    M src/agents/models/chatcmpl_converter.py (17)



-- Patch Links --



https://github.com/openai/openai-agents-python/pull/1839.patch

https://github.com/openai/openai-agents-python/pull/1839.diff



-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/pull/1839

You are receiving this because you are subscribed to this thread.



Message ID: &lt;openai/openai-agents-python/pull/1839@github.com&gt;

---

## Suggested Actions
- [ ] Reply
- [ ] Archive
- [ ] Escalate
