@@ -192,6 +192,7 @@ def search(
192192 processor : Optional [Literal ["base" , "pro" ]] | Omit = omit ,
193193 search_queries : Optional [SequenceNotStr [str ]] | Omit = omit ,
194194 source_policy : Optional [SourcePolicy ] | Omit = omit ,
195+ betas : List [ParallelBetaParam ] | Omit = omit ,
195196 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
196197 # The extra values given here take precedence over values defined on the client or passed to this method.
197198 extra_headers : Headers | None = None ,
@@ -234,6 +235,8 @@ def search(
234235
235236 This policy governs which sources are allowed/disallowed in results.
236237
238+ betas: Optional header to specify the beta version(s) to enable.
239+
237240 extra_headers: Send extra headers
238241
239242 extra_query: Add additional query parameters to the request
@@ -242,6 +245,16 @@ def search(
242245
243246 timeout: Override the client-level default timeout for this request, in seconds
244247 """
248+ extra_headers = {
249+ ** strip_not_given (
250+ {
251+ "parallel-beta" : "," .join (chain ((str (e ) for e in betas ), ["search-extract-2025-10-10" ]))
252+ if is_given (betas )
253+ else not_given
254+ }
255+ ),
256+ ** (extra_headers or {}),
257+ }
245258 extra_headers = {"parallel-beta" : "search-extract-2025-10-10" , ** (extra_headers or {})}
246259 return self ._post (
247260 "/v1beta/search" ,
@@ -404,6 +417,7 @@ async def search(
404417 processor : Optional [Literal ["base" , "pro" ]] | Omit = omit ,
405418 search_queries : Optional [SequenceNotStr [str ]] | Omit = omit ,
406419 source_policy : Optional [SourcePolicy ] | Omit = omit ,
420+ betas : List [ParallelBetaParam ] | Omit = omit ,
407421 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
408422 # The extra values given here take precedence over values defined on the client or passed to this method.
409423 extra_headers : Headers | None = None ,
@@ -446,6 +460,8 @@ async def search(
446460
447461 This policy governs which sources are allowed/disallowed in results.
448462
463+ betas: Optional header to specify the beta version(s) to enable.
464+
449465 extra_headers: Send extra headers
450466
451467 extra_query: Add additional query parameters to the request
@@ -454,6 +470,16 @@ async def search(
454470
455471 timeout: Override the client-level default timeout for this request, in seconds
456472 """
473+ extra_headers = {
474+ ** strip_not_given (
475+ {
476+ "parallel-beta" : "," .join (chain ((str (e ) for e in betas ), ["search-extract-2025-10-10" ]))
477+ if is_given (betas )
478+ else not_given
479+ }
480+ ),
481+ ** (extra_headers or {}),
482+ }
457483 extra_headers = {"parallel-beta" : "search-extract-2025-10-10" , ** (extra_headers or {})}
458484 return await self ._post (
459485 "/v1beta/search" ,
0 commit comments