Skip to content

Commit a1fb97b

Browse files
fix(client): update type for find_in_page action
1 parent 42cb178 commit a1fb97b

3 files changed

Lines changed: 19 additions & 12 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 137
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-b956f0004bb930006f4b8d24734b20e89c7420ca6635dd358b9f0299c8ac8d62.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-64c3a646eb5dcad2b7ff7bd976c0e312b886676a542f6ffcd9a6c8503ae24c58.yml
33
openapi_spec_hash: 91b1b7bf3c1a6b6c9c7507d4cac8fe2a
4-
config_hash: 9501b3367f98ede2729f1bfffb3a803a
4+
config_hash: f8e6baff429cf000b8e4ba1da08dff47

src/openai/types/responses/response_function_web_search.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@
66
from ..._utils import PropertyInfo
77
from ..._models import BaseModel
88

9-
__all__ = ["ResponseFunctionWebSearch", "Action", "ActionSearch", "ActionSearchSource", "ActionOpenPage", "ActionFind"]
9+
__all__ = [
10+
"ResponseFunctionWebSearch",
11+
"Action",
12+
"ActionSearch",
13+
"ActionSearchSource",
14+
"ActionOpenPage",
15+
"ActionFindInPage",
16+
]
1017

1118

1219
class ActionSearchSource(BaseModel):
@@ -45,20 +52,20 @@ class ActionOpenPage(BaseModel):
4552
"""The URL opened by the model."""
4653

4754

48-
class ActionFind(BaseModel):
49-
"""Action type "find": Searches for a pattern within a loaded page."""
55+
class ActionFindInPage(BaseModel):
56+
"""Action type "find_in_page": Searches for a pattern within a loaded page."""
5057

5158
pattern: str
5259
"""The pattern or text to search for within the page."""
5360

54-
type: Literal["find"]
61+
type: Literal["find_in_page"]
5562
"""The action type."""
5663

5764
url: str
5865
"""The URL of the page searched for the pattern."""
5966

6067

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

6370

6471
class ResponseFunctionWebSearch(BaseModel):

src/openai/types/responses/response_function_web_search_param.py

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

1919

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

5555

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

5959
pattern: Required[str]
6060
"""The pattern or text to search for within the page."""
6161

62-
type: Required[Literal["find"]]
62+
type: Required[Literal["find_in_page"]]
6363
"""The action type."""
6464

6565
url: Required[str]
6666
"""The URL of the page searched for the pattern."""
6767

6868

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

7171

7272
class ResponseFunctionWebSearchParam(TypedDict, total=False):

0 commit comments

Comments
 (0)