Skip to content

Missing max_tool_calls option for Deep Research #1572

Open
@andrewdoro

Description

@andrewdoro

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

max_tool_calls option is missing in the node version

https://platform.openai.com/docs/api-reference/responses/create#responses-create-max_tool_calls

const response = await openai.responses.create({
model: 'o4-mini-deep-research', // Using the faster model
input,
tools: [
{
type: 'web_search_preview',
},
],

stream: true,
reasoning: {
  summary: 'detailed',
},

});

To Reproduce

Try to create an openai response with the deep research model

Code snippets

OS

macOs

Node version

v23.11.0

Library version

^5.8.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingopenapi

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions