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 11configured_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 
44config_hash : e74d6791681e3af1b548748ff47a22c2 
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 
Original file line number Diff line number Diff 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 }
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments