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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/openai/types/responses/response_function_web_search.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Union
from typing import Optional, Union
from typing_extensions import Literal, Annotated, TypeAlias

from ..._utils import PropertyInfo
Expand Down Expand Up @@ -43,7 +43,7 @@ class ResponseFunctionWebSearch(BaseModel):
id: str
"""The unique ID of the web search tool call."""

action: Action
action: Optional[Action] = None
"""
An object describing the specific action taken in this web search call. Includes
details on how the model used the web (search, open_page, find).
Expand Down