Skip to content

Conversation

@ymktmk
Copy link
Contributor

@ymktmk ymktmk commented Aug 28, 2025

What:

  • Bug Fix
  • New Feature

Description:

  • Support for the web_search tool in the Responses API
    • Added web_search to the match branch of the tool/tool_choice in CreateResponse/RetrieveResponse
    • Added web_search to the type annotations of WebSearchTool/HostedToolChoice
  • This prevents runtime exceptions (unhandled match cases) when the API returns web_search
  • There is no change in previous behavior; only the accepted values ​​have been expanded (compatible).

Related:

Copy link
Collaborator

@iBotPeaches iBotPeaches left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The type of the web search tool. One of web_search or web_search_2025_08_26.

Should you add the other one as well? Just checked docs to validate this and saw another.

Copy link
Collaborator

@iBotPeaches iBotPeaches left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We an iterate later on more support. This will add the more urgent need for now.

@iBotPeaches iBotPeaches merged commit a38f334 into openai-php:main Aug 29, 2025
12 checks passed
@iBotPeaches iBotPeaches added this to the v0.17.0 milestone Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants