File tree Expand file tree Collapse file tree 4 files changed +8
-46
lines changed
lib/openai/models/responses
rbi/openai/models/responses
sig/openai/models/responses Expand file tree Collapse file tree 4 files changed +8
-46
lines changed Original file line number Diff line number Diff line change 1
1
configured_endpoints : 109
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
4
4
config_hash : e74d6791681e3af1b548748ff47a22c2
Original file line number Diff line number Diff line change @@ -76,13 +76,7 @@ class Search < OpenAI::Internal::Type::BaseModel
76
76
# @return [Symbol, :search]
77
77
required :type , const : :search
78
78
79
- # @!attribute domains
80
- # Domains to restrict the search or domains where results were found.
81
- #
82
- # @return [Array<String>, nil]
83
- optional :domains , OpenAI ::Internal ::Type ::ArrayOf [ String ]
84
-
85
- # @!method initialize(query:, domains: nil, type: :search)
79
+ # @!method initialize(query:, type: :search)
86
80
# Some parameter documentations has been truncated, see
87
81
# {OpenAI::Models::Responses::ResponseFunctionWebSearch::Action::Search} for more
88
82
# details.
@@ -91,8 +85,6 @@ class Search < OpenAI::Internal::Type::BaseModel
91
85
#
92
86
# @param query [String] The search query.
93
87
#
94
- # @param domains [Array<String>] Domains to restrict the search or domains where results were found.
95
- #
96
88
# @param type [Symbol, :search] The action type.
97
89
end
98
90
Original file line number Diff line number Diff line change @@ -121,36 +121,19 @@ module OpenAI
121
121
sig { returns ( Symbol ) }
122
122
attr_accessor :type
123
123
124
- # Domains to restrict the search or domains where results were found.
125
- sig { returns ( T . nilable ( T ::Array [ String ] ) ) }
126
- attr_reader :domains
127
-
128
- sig { params ( domains : T ::Array [ String ] ) . void }
129
- attr_writer :domains
130
-
131
124
# Action type "search" - Performs a web search query.
132
125
sig do
133
- params (
134
- query : String ,
135
- domains : T ::Array [ String ] ,
136
- type : Symbol
137
- ) . returns ( T . attached_class )
126
+ params ( query : String , type : Symbol ) . returns ( T . attached_class )
138
127
end
139
128
def self . new (
140
129
# The search query.
141
130
query :,
142
- # Domains to restrict the search or domains where results were found.
143
- domains : nil ,
144
131
# The action type.
145
132
type : :search
146
133
)
147
134
end
148
135
149
- sig do
150
- override . returns (
151
- { query : String , type : Symbol , domains : T ::Array [ String ] }
152
- )
153
- end
136
+ sig { override . returns ( { query : String , type : Symbol } ) }
154
137
def to_hash
155
138
end
156
139
end
Original file line number Diff line number Diff line change @@ -40,29 +40,16 @@ module OpenAI
40
40
module Action
41
41
extend OpenAI::Internal::Type::Union
42
42
43
- type search =
44
- { query: String, type : :search, domains: ::Array[String] }
43
+ type search = { query: String, type : :search }
45
44
46
45
class Search < OpenAI::Internal::Type::BaseModel
47
46
attr_accessor query: String
48
47
49
48
attr_accessor type : :search
50
49
51
- attr_reader domains: ::Array[ String]?
50
+ def initialize : (query: String, ? type : :search) -> void
52
51
53
- def domains= : (::Array[String]) -> ::Array[String]
54
-
55
- def initialize : (
56
- query: String,
57
- ?domains: ::Array[String],
58
- ?type : :search
59
- ) -> void
60
-
61
- def to_hash : -> {
62
- query: String,
63
- type : :search,
64
- domains: ::Array[String]
65
- }
52
+ def to_hash : -> { query: String, type : :search }
66
53
end
67
54
68
55
type open_page = { type : :open_page, url: String }
You can’t perform that action at this time.
0 commit comments