Skip to content

Commit f8bf5da

Browse files
chore(api): remove unsupported property
1 parent d80d361 commit f8bf5da

File tree

2 files changed

+6
-40
lines changed

2 files changed

+6
-40
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 97
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-cca460eaf5cc13e9d6e5293eb97aac53d66dc1385c691f74b768c97d165b6e8b.yml
3-
openapi_spec_hash: 9ec43d443b3dd58ca5aa87eb0a7eb49f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-a473967d1766dc155994d932fbc4a5bcbd1c140a37c20d0a4065e1bf0640536d.yml
3+
openapi_spec_hash: 67cdc62b0d6c8b1de29b7dc54b265749
44
config_hash: e74d6791681e3af1b548748ff47a22c2

responses/response.go

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3856,15 +3856,12 @@ type ResponseFunctionWebSearchActionUnion struct {
38563856
Query string `json:"query"`
38573857
// Any of "search", "open_page", "find".
38583858
Type string `json:"type"`
3859-
// This field is from variant [ResponseFunctionWebSearchActionSearch].
3860-
Domains []string `json:"domains"`
3861-
URL string `json:"url"`
3859+
URL string `json:"url"`
38623860
// This field is from variant [ResponseFunctionWebSearchActionFind].
38633861
Pattern string `json:"pattern"`
38643862
JSON struct {
38653863
Query respjson.Field
38663864
Type respjson.Field
3867-
Domains respjson.Field
38683865
URL respjson.Field
38693866
Pattern respjson.Field
38703867
raw string
@@ -3931,13 +3928,10 @@ type ResponseFunctionWebSearchActionSearch struct {
39313928
Query string `json:"query,required"`
39323929
// The action type.
39333930
Type constant.Search `json:"type,required"`
3934-
// Domains to restrict the search or domains where results were found.
3935-
Domains []string `json:"domains"`
39363931
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
39373932
JSON struct {
39383933
Query respjson.Field
39393934
Type respjson.Field
3940-
Domains respjson.Field
39413935
ExtraFields map[string]respjson.Field
39423936
raw string
39433937
} `json:"-"`
@@ -4070,14 +4064,6 @@ func (u ResponseFunctionWebSearchActionUnionParam) GetQuery() *string {
40704064
return nil
40714065
}
40724066

4073-
// Returns a pointer to the underlying variant's property, if present.
4074-
func (u ResponseFunctionWebSearchActionUnionParam) GetDomains() []string {
4075-
if vt := u.OfSearch; vt != nil {
4076-
return vt.Domains
4077-
}
4078-
return nil
4079-
}
4080-
40814067
// Returns a pointer to the underlying variant's property, if present.
40824068
func (u ResponseFunctionWebSearchActionUnionParam) GetPattern() *string {
40834069
if vt := u.OfFind; vt != nil {
@@ -4123,8 +4109,6 @@ func init() {
41234109
type ResponseFunctionWebSearchActionSearchParam struct {
41244110
// The search query.
41254111
Query string `json:"query,required"`
4126-
// Domains to restrict the search or domains where results were found.
4127-
Domains []string `json:"domains,omitzero"`
41284112
// The action type.
41294113
//
41304114
// This field can be elided, and will marshal its zero value as "search".
@@ -5073,9 +5057,7 @@ type ResponseInputItemUnionAction struct {
50735057
Text string `json:"text"`
50745058
// This field is from variant [ResponseFunctionWebSearchActionUnion].
50755059
Query string `json:"query"`
5076-
// This field is from variant [ResponseFunctionWebSearchActionUnion].
5077-
Domains []string `json:"domains"`
5078-
URL string `json:"url"`
5060+
URL string `json:"url"`
50795061
// This field is from variant [ResponseFunctionWebSearchActionUnion].
50805062
Pattern string `json:"pattern"`
50815063
// This field is from variant [ResponseInputItemLocalShellCallAction].
@@ -5099,7 +5081,6 @@ type ResponseInputItemUnionAction struct {
50995081
ScrollY respjson.Field
51005082
Text respjson.Field
51015083
Query respjson.Field
5102-
Domains respjson.Field
51035084
URL respjson.Field
51045085
Pattern respjson.Field
51055086
Command respjson.Field
@@ -6243,15 +6224,6 @@ func (u responseInputItemUnionParamAction) GetQuery() *string {
62436224
return nil
62446225
}
62456226

6246-
// Returns a pointer to the underlying variant's property, if present.
6247-
func (u responseInputItemUnionParamAction) GetDomains() []string {
6248-
switch vt := u.any.(type) {
6249-
case *ResponseFunctionWebSearchActionUnionParam:
6250-
return vt.GetDomains()
6251-
}
6252-
return nil
6253-
}
6254-
62556227
// Returns a pointer to the underlying variant's property, if present.
62566228
func (u responseInputItemUnionParamAction) GetPattern() *string {
62576229
switch vt := u.any.(type) {
@@ -7268,9 +7240,7 @@ type ResponseItemUnionAction struct {
72687240
Text string `json:"text"`
72697241
// This field is from variant [ResponseFunctionWebSearchActionUnion].
72707242
Query string `json:"query"`
7271-
// This field is from variant [ResponseFunctionWebSearchActionUnion].
7272-
Domains []string `json:"domains"`
7273-
URL string `json:"url"`
7243+
URL string `json:"url"`
72747244
// This field is from variant [ResponseFunctionWebSearchActionUnion].
72757245
Pattern string `json:"pattern"`
72767246
// This field is from variant [ResponseItemLocalShellCallAction].
@@ -7294,7 +7264,6 @@ type ResponseItemUnionAction struct {
72947264
ScrollY respjson.Field
72957265
Text respjson.Field
72967266
Query respjson.Field
7297-
Domains respjson.Field
72987267
URL respjson.Field
72997268
Pattern respjson.Field
73007269
Command respjson.Field
@@ -8035,9 +8004,7 @@ type ResponseOutputItemUnionAction struct {
80358004
// This field is from variant [ResponseFunctionWebSearchActionUnion].
80368005
Query string `json:"query"`
80378006
Type string `json:"type"`
8038-
// This field is from variant [ResponseFunctionWebSearchActionUnion].
8039-
Domains []string `json:"domains"`
8040-
URL string `json:"url"`
8007+
URL string `json:"url"`
80418008
// This field is from variant [ResponseFunctionWebSearchActionUnion].
80428009
Pattern string `json:"pattern"`
80438010
// This field is from variant [ResponseComputerToolCallActionUnion].
@@ -8067,7 +8034,6 @@ type ResponseOutputItemUnionAction struct {
80678034
JSON struct {
80688035
Query respjson.Field
80698036
Type respjson.Field
8070-
Domains respjson.Field
80718037
URL respjson.Field
80728038
Pattern respjson.Field
80738039
Button respjson.Field

0 commit comments

Comments
 (0)