From 02d0a677a4d2d44cdb32b5216aeeaa1e2bed0f40 Mon Sep 17 00:00:00 2001 From: Denis Shulyaka Date: Tue, 8 Jul 2025 17:27:49 +0300 Subject: [PATCH] Make ResponseFunctionWebSearch.action optional --- src/openai/types/responses/response_function_web_search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openai/types/responses/response_function_web_search.py b/src/openai/types/responses/response_function_web_search.py index a3252956e9..8417956674 100644 --- a/src/openai/types/responses/response_function_web_search.py +++ b/src/openai/types/responses/response_function_web_search.py @@ -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 @@ -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).