Skip to content

Commit 8563048

Browse files
chore(api): remove unsupported property
1 parent e384e58 commit 8563048

File tree

4 files changed

+8
-46
lines changed

4 files changed

+8
-46
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: 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
44
config_hash: e74d6791681e3af1b548748ff47a22c2

lib/openai/models/responses/response_function_web_search.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,7 @@ class Search < OpenAI::Internal::Type::BaseModel
7676
# @return [Symbol, :search]
7777
required :type, const: :search
7878

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)
8680
# Some parameter documentations has been truncated, see
8781
# {OpenAI::Models::Responses::ResponseFunctionWebSearch::Action::Search} for more
8882
# details.
@@ -91,8 +85,6 @@ class Search < OpenAI::Internal::Type::BaseModel
9185
#
9286
# @param query [String] The search query.
9387
#
94-
# @param domains [Array<String>] Domains to restrict the search or domains where results were found.
95-
#
9688
# @param type [Symbol, :search] The action type.
9789
end
9890

rbi/openai/models/responses/response_function_web_search.rbi

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -121,36 +121,19 @@ module OpenAI
121121
sig { returns(Symbol) }
122122
attr_accessor :type
123123

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-
131124
# Action type "search" - Performs a web search query.
132125
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)
138127
end
139128
def self.new(
140129
# The search query.
141130
query:,
142-
# Domains to restrict the search or domains where results were found.
143-
domains: nil,
144131
# The action type.
145132
type: :search
146133
)
147134
end
148135

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 }) }
154137
def to_hash
155138
end
156139
end

sig/openai/models/responses/response_function_web_search.rbs

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,29 +40,16 @@ module OpenAI
4040
module Action
4141
extend OpenAI::Internal::Type::Union
4242

43-
type search =
44-
{ query: String, type: :search, domains: ::Array[String] }
43+
type search = { query: String, type: :search }
4544

4645
class Search < OpenAI::Internal::Type::BaseModel
4746
attr_accessor query: String
4847

4948
attr_accessor type: :search
5049

51-
attr_reader domains: ::Array[String]?
50+
def initialize: (query: String, ?type: :search) -> void
5251

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 }
6653
end
6754

6855
type open_page = { type: :open_page, url: String }

0 commit comments

Comments
 (0)