You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Responses API streaming response.function_call_arguments.done event missing function name #2723
Confirm this is an issue with the Python library and not an underlying OpenAI API
This is an issue with the Python library
Describe the bug
The name attribute for the response.function_call_arguments.done event is None so you can't figure out which function to call. I tried uninstalling and reinstalling the latest openai version and still the same problem. I tried to add multiple tools and still the same problem.
To Reproduce
TOOLS_SPEC= [
{
"type": "function",
"name": "search_parts",
"description": "Check the availability of a specific auto part based on the provided vehicle information.",
"parameters": {
"type": "object",
"properties": {
"make": {"type": "string"},
"model": {"type": "string"},
"year": {"type": "string"},
"part_type": {"type": "string"}
},
"required": ["make", "model", "year", "part_type"],
"additionalProperties": False,
},
}
]
stream=client.responses.create(
model="gpt-5-mini",
input=messages,
tools=TOOLS_SPEC,
stream=True,
reasoning={ "effort": "low", "summary": "auto" }
)
foreventinstream:
et=getattr(event, "type", None)
ifet=="response.function_call_arguments.done":
print("FUNC ARGS DONE:", event.model_dump())
And I see this in the output FUNC ARGS DONE: {'arguments': '{"make":"Ford","model":"Bronco","year":"2022","part_type":"Clutch Disc"}', 'item_id': 'fc_0accd097e3ea311f00690517123e5081a0a9cf17ce3c3a2132', 'name': None, 'output_index': 1, 'sequence_number': 125, 'type': 'response.function_call_arguments.done'}
The name attribute of the event is None so there isn't a way to tell what function the model is trying to call
Thank you for reporting this. The SDK incorrectly declared name on argument-completion events. #3801 corrected that contract in 3.9.0.
Please upgrade and replace event.name with the name from the function-call item, matched using event.item_id, as shown in the function-calling guide. This requires a code change; upgrading does not populate name. We’re closing because the SDK now matches the event contract.
Activity
feat: Emit ResponseFunctionCallArgumentsDoneEvent with name from snap…
agurianov commentedon Dec 7, 2025
Hi, we are waiting for this fix instead of you releasing last time
Fix ChatGPT tool call parsing: work around name=null API bug
marcuswood-oai commentedon Sep 9, 2026
Thank you for reporting this. The SDK incorrectly declared
nameon argument-completion events. #3801 corrected that contract in 3.9.0.Please upgrade and replace
event.namewith the name from the function-call item, matched usingevent.item_id, as shown in the function-calling guide. This requires a code change; upgrading does not populatename. We’re closing because the SDK now matches the event contract.