Skip to content

Make ResponseFunctionWebSearch.action optional #2450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Shulyaka
Copy link

@Shulyaka Shulyaka commented Jul 8, 2025

  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

When ResponseFunctionWebSearch is sent in an ResponseOutputItemAddedEvent event, the action is not provided, so the parser picks a wrong class. The above change fixes it.

Additional context & links

Fixes #2448

@Shulyaka Shulyaka requested a review from a team as a code owner July 8, 2025 14:31
@Shulyaka
Copy link
Author

Shulyaka commented Jul 9, 2025

Closed in favor of fc8a677

@Shulyaka Shulyaka closed this Jul 9, 2025
@RobertCraigie RobertCraigie reopened this Jul 9, 2025
@RobertCraigie
Copy link
Collaborator

I'm actually going to keep this open for now as it looks like there's a separate issue where the action property should be marked as Optional. However that should be fixed in the OpenAPI spec used to generate this SDK so I'm leaving it open until that can be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

An item with type 'web_search_call' received as ResponseOutputMessage
2 participants