Open
Description
Confirm this is a Node library issue and not an underlying OpenAI API issue
- This is an issue with the Node library
Describe the bug
Looking at the OpenAI API reference, the event type for mcp_call arguments is documented as response.mcp_call.arguments.delta
. However, openai-node represents this event as response.mcp_call.arguments_delta
.
I tried changing the event type to match the API reference documentation using ts-ignore
, but it still didn't work. When I checked what was actually being sent, I was shocked to find that it's coming through as response.mcp_call_arguments.delta
...
Please fix this bug!
Interestingly, the openai-agent project is using response.mcp_call_arguments.delta
lol
To Reproduce
check my link
Code snippets
OS
macOS
Node version
Node 22
Library version
openai latest