Skip to content

Commit b982088

Browse files
dtmeadowsstainless-app[bot]
authored andcommitted
fix(client): undo change to web search Find action
1 parent b95c09d commit b982088

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/openai/types/responses/response_function_web_search.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"ActionSearch",
1313
"ActionSearchSource",
1414
"ActionOpenPage",
15-
"ActionFindInPage",
15+
"ActionFind",
1616
]
1717

1818

@@ -52,7 +52,7 @@ class ActionOpenPage(BaseModel):
5252
"""The URL opened by the model."""
5353

5454

55-
class ActionFindInPage(BaseModel):
55+
class ActionFind(BaseModel):
5656
"""Action type "find_in_page": Searches for a pattern within a loaded page."""
5757

5858
pattern: str
@@ -65,7 +65,7 @@ class ActionFindInPage(BaseModel):
6565
"""The URL of the page searched for the pattern."""
6666

6767

68-
Action: TypeAlias = Annotated[Union[ActionSearch, ActionOpenPage, ActionFindInPage], PropertyInfo(discriminator="type")]
68+
Action: TypeAlias = Annotated[Union[ActionSearch, ActionOpenPage, ActionFind], PropertyInfo(discriminator="type")]
6969

7070

7171
class ResponseFunctionWebSearch(BaseModel):

src/openai/types/responses/response_function_web_search_param.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"ActionSearch",
1414
"ActionSearchSource",
1515
"ActionOpenPage",
16-
"ActionFindInPage",
16+
"ActionFind",
1717
]
1818

1919

@@ -53,7 +53,7 @@ class ActionOpenPage(TypedDict, total=False):
5353
"""The URL opened by the model."""
5454

5555

56-
class ActionFindInPage(TypedDict, total=False):
56+
class ActionFind(TypedDict, total=False):
5757
"""Action type "find_in_page": Searches for a pattern within a loaded page."""
5858

5959
pattern: Required[str]
@@ -66,7 +66,7 @@ class ActionFindInPage(TypedDict, total=False):
6666
"""The URL of the page searched for the pattern."""
6767

6868

69-
Action: TypeAlias = Union[ActionSearch, ActionOpenPage, ActionFindInPage]
69+
Action: TypeAlias = Union[ActionSearch, ActionOpenPage, ActionFind]
7070

7171

7272
class ResponseFunctionWebSearchParam(TypedDict, total=False):

0 commit comments

Comments
 (0)