Skip to content

web_search_call.action.sources missing in include type definition #1627

@ceja-spread

Description

@ceja-spread

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

When using "web_search_call.action.sources" in the include array it should be accepted by ts.

include: [
"reasoning.encrypted_content",
"web_search_call.action.sources"
]

flags the web_search_call.action.sources even though it's listed in the documentation of type ResponseIncludable (web_search_call.action.sources: Include the sources of the web search tool call.)

To Reproduce

make a gpt 5 call using the include parameter with "web_search_call.action.sources"

Code snippets

OS

macOS

Node version

Node v20.10

Library version

openai v5.16.0

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