parallel-web 0.4.0__tar.gz → 0.4.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. parallel_web-0.4.1/.release-please-manifest.json +3 -0
  2. {parallel_web-0.4.0 → parallel_web-0.4.1}/CHANGELOG.md +15 -0
  3. {parallel_web-0.4.0 → parallel_web-0.4.1}/PKG-INFO +1 -1
  4. {parallel_web-0.4.0 → parallel_web-0.4.1}/pyproject.toml +1 -1
  5. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_base_client.py +134 -11
  6. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_models.py +16 -1
  7. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_types.py +9 -0
  8. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_version.py +1 -1
  9. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/resources/beta/beta.py +22 -10
  10. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/beta_extract_params.py +3 -3
  11. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/api_resources/test_beta.py +2 -8
  12. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/test_client.py +185 -2
  13. parallel_web-0.4.0/.release-please-manifest.json +0 -3
  14. {parallel_web-0.4.0 → parallel_web-0.4.1}/.gitignore +0 -0
  15. {parallel_web-0.4.0 → parallel_web-0.4.1}/CONTRIBUTING.md +0 -0
  16. {parallel_web-0.4.0 → parallel_web-0.4.1}/LICENSE +0 -0
  17. {parallel_web-0.4.0 → parallel_web-0.4.1}/README.md +0 -0
  18. {parallel_web-0.4.0 → parallel_web-0.4.1}/SECURITY.md +0 -0
  19. {parallel_web-0.4.0 → parallel_web-0.4.1}/api.md +0 -0
  20. {parallel_web-0.4.0 → parallel_web-0.4.1}/bin/check-release-environment +0 -0
  21. {parallel_web-0.4.0 → parallel_web-0.4.1}/bin/publish-pypi +0 -0
  22. {parallel_web-0.4.0 → parallel_web-0.4.1}/examples/.keep +0 -0
  23. {parallel_web-0.4.0 → parallel_web-0.4.1}/noxfile.py +0 -0
  24. {parallel_web-0.4.0 → parallel_web-0.4.1}/release-please-config.json +0 -0
  25. {parallel_web-0.4.0 → parallel_web-0.4.1}/requirements-dev.lock +0 -0
  26. {parallel_web-0.4.0 → parallel_web-0.4.1}/requirements.lock +0 -0
  27. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/__init__.py +0 -0
  28. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_client.py +0 -0
  29. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_compat.py +0 -0
  30. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_constants.py +0 -0
  31. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_exceptions.py +0 -0
  32. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_files.py +0 -0
  33. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_qs.py +0 -0
  34. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_resource.py +0 -0
  35. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_response.py +0 -0
  36. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_streaming.py +0 -0
  37. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_utils/__init__.py +0 -0
  38. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_utils/_compat.py +0 -0
  39. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_utils/_datetime_parse.py +0 -0
  40. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_utils/_logs.py +0 -0
  41. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_utils/_proxy.py +0 -0
  42. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_utils/_reflection.py +0 -0
  43. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_utils/_resources_proxy.py +0 -0
  44. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_utils/_streams.py +0 -0
  45. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_utils/_sync.py +0 -0
  46. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_utils/_transform.py +0 -0
  47. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_utils/_typing.py +0 -0
  48. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/_utils/_utils.py +0 -0
  49. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/lib/.keep +0 -0
  50. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/lib/__init__.py +0 -0
  51. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/lib/_parsing/__init__.py +0 -0
  52. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/lib/_parsing/_task_run_result.py +0 -0
  53. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/lib/_parsing/_task_spec.py +0 -0
  54. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/lib/_pydantic.py +0 -0
  55. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/lib/_time.py +0 -0
  56. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/py.typed +0 -0
  57. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/resources/__init__.py +0 -0
  58. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/resources/beta/__init__.py +0 -0
  59. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/resources/beta/findall.py +0 -0
  60. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/resources/beta/task_group.py +0 -0
  61. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/resources/beta/task_run.py +0 -0
  62. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/resources/task_run.py +0 -0
  63. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/__init__.py +0 -0
  64. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/auto_schema.py +0 -0
  65. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/auto_schema_param.py +0 -0
  66. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/__init__.py +0 -0
  67. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/beta_run_input.py +0 -0
  68. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/beta_run_input_param.py +0 -0
  69. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/beta_search_params.py +0 -0
  70. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/beta_task_run_result.py +0 -0
  71. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/error_event.py +0 -0
  72. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/excerpt_settings_param.py +0 -0
  73. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/extract_error.py +0 -0
  74. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/extract_response.py +0 -0
  75. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/extract_result.py +0 -0
  76. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/fetch_policy_param.py +0 -0
  77. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/findall_candidate_match_status_event.py +0 -0
  78. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/findall_create_params.py +0 -0
  79. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/findall_enrich_input.py +0 -0
  80. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/findall_enrich_params.py +0 -0
  81. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/findall_events_params.py +0 -0
  82. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/findall_events_response.py +0 -0
  83. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/findall_extend_params.py +0 -0
  84. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/findall_ingest_params.py +0 -0
  85. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/findall_run.py +0 -0
  86. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/findall_run_result.py +0 -0
  87. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/findall_run_status_event.py +0 -0
  88. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/findall_schema.py +0 -0
  89. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/findall_schema_updated_event.py +0 -0
  90. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/mcp_server.py +0 -0
  91. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/mcp_server_param.py +0 -0
  92. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/mcp_tool_call.py +0 -0
  93. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/parallel_beta_param.py +0 -0
  94. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/search_result.py +0 -0
  95. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/task_group.py +0 -0
  96. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/task_group_add_runs_params.py +0 -0
  97. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/task_group_create_params.py +0 -0
  98. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/task_group_events_params.py +0 -0
  99. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/task_group_events_response.py +0 -0
  100. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/task_group_get_runs_params.py +0 -0
  101. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/task_group_get_runs_response.py +0 -0
  102. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/task_group_run_response.py +0 -0
  103. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/task_group_status.py +0 -0
  104. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/task_run_create_params.py +0 -0
  105. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/task_run_event.py +0 -0
  106. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/task_run_events_response.py +0 -0
  107. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/task_run_result_params.py +0 -0
  108. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/usage_item.py +0 -0
  109. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/web_search_result.py +0 -0
  110. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/webhook.py +0 -0
  111. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/beta/webhook_param.py +0 -0
  112. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/citation.py +0 -0
  113. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/field_basis.py +0 -0
  114. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/json_schema.py +0 -0
  115. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/json_schema_param.py +0 -0
  116. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/parsed_task_run_result.py +0 -0
  117. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/shared/__init__.py +0 -0
  118. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/shared/error_object.py +0 -0
  119. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/shared/error_response.py +0 -0
  120. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/shared/source_policy.py +0 -0
  121. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/shared/warning.py +0 -0
  122. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/shared_params/__init__.py +0 -0
  123. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/shared_params/source_policy.py +0 -0
  124. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/task_run.py +0 -0
  125. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/task_run_create_params.py +0 -0
  126. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/task_run_json_output.py +0 -0
  127. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/task_run_result.py +0 -0
  128. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/task_run_result_params.py +0 -0
  129. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/task_run_text_output.py +0 -0
  130. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/task_spec.py +0 -0
  131. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/task_spec_param.py +0 -0
  132. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/text_schema.py +0 -0
  133. {parallel_web-0.4.0 → parallel_web-0.4.1}/src/parallel/types/text_schema_param.py +0 -0
  134. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/__init__.py +0 -0
  135. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/api_resources/__init__.py +0 -0
  136. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/api_resources/beta/__init__.py +0 -0
  137. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/api_resources/beta/test_findall.py +0 -0
  138. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/api_resources/beta/test_task_group.py +0 -0
  139. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/api_resources/beta/test_task_run.py +0 -0
  140. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/api_resources/test_task_run.py +0 -0
  141. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/conftest.py +0 -0
  142. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/sample_file.txt +0 -0
  143. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/test_deepcopy.py +0 -0
  144. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/test_extract_files.py +0 -0
  145. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/test_files.py +0 -0
  146. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/test_models.py +0 -0
  147. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/test_qs.py +0 -0
  148. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/test_required_args.py +0 -0
  149. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/test_response.py +0 -0
  150. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/test_streaming.py +0 -0
  151. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/test_transform.py +0 -0
  152. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/test_utils/test_datetime_parse.py +0 -0
  153. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/test_utils/test_proxy.py +0 -0
  154. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/test_utils/test_typing.py +0 -0
  155. {parallel_web-0.4.0 → parallel_web-0.4.1}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.4.1"
3
+ }
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.1 (2026-01-28)
4
+
5
+ Full Changelog: [v0.4.0...v0.4.1](https://github.com/parallel-web/parallel-sdk-python/compare/v0.4.0...v0.4.1)
6
+
7
+ ### Features
8
+
9
+ * **client:** add support for binary request streaming ([1138841](https://github.com/parallel-web/parallel-sdk-python/commit/1138841ae071ae81665158a2407d36502524b8a6))
10
+
11
+
12
+ ### Chores
13
+
14
+ * **api:** make headers optional ([f99b59d](https://github.com/parallel-web/parallel-sdk-python/commit/f99b59d1ebd829a2c3c62a9a814941f6299f3653))
15
+ * **ci:** upgrade `actions/github-script` ([293c778](https://github.com/parallel-web/parallel-sdk-python/commit/293c778ea739104cc0f153bc099515b5d0d4d339))
16
+ * **internal:** update `actions/checkout` version ([326daf2](https://github.com/parallel-web/parallel-sdk-python/commit/326daf24e43d2a45e077d435db63d72187039207))
17
+
3
18
  ## 0.4.0 (2026-01-13)
4
19
 
5
20
  Full Changelog: [v0.3.4...v0.4.0](https://github.com/parallel-web/parallel-sdk-python/compare/v0.3.4...v0.4.0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: parallel-web
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: The official Python library for the Parallel API
5
5
  Project-URL: Homepage, https://github.com/parallel-web/parallel-sdk-python
6
6
  Project-URL: Repository, https://github.com/parallel-web/parallel-sdk-python
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "parallel-web"
3
- version = "0.4.0"
3
+ version = "0.4.1"
4
4
  description = "The official Python library for the Parallel API"
5
5
  dynamic = ["readme"]
6
6
  license = "MIT"
@@ -9,6 +9,7 @@ import asyncio
9
9
  import inspect
10
10
  import logging
11
11
  import platform
12
+ import warnings
12
13
  import email.utils
13
14
  from types import TracebackType
14
15
  from random import random
@@ -51,9 +52,11 @@ from ._types import (
51
52
  ResponseT,
52
53
  AnyMapping,
53
54
  PostParser,
55
+ BinaryTypes,
54
56
  RequestFiles,
55
57
  HttpxSendArgs,
56
58
  RequestOptions,
59
+ AsyncBinaryTypes,
57
60
  HttpxRequestFiles,
58
61
  ModelBuilderProtocol,
59
62
  not_given,
@@ -477,8 +480,19 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
477
480
  retries_taken: int = 0,
478
481
  ) -> httpx.Request:
479
482
  if log.isEnabledFor(logging.DEBUG):
480
- log.debug("Request options: %s", model_dump(options, exclude_unset=True))
481
-
483
+ log.debug(
484
+ "Request options: %s",
485
+ model_dump(
486
+ options,
487
+ exclude_unset=True,
488
+ # Pydantic v1 can't dump every type we support in content, so we exclude it for now.
489
+ exclude={
490
+ "content",
491
+ }
492
+ if PYDANTIC_V1
493
+ else {},
494
+ ),
495
+ )
482
496
  kwargs: dict[str, Any] = {}
483
497
 
484
498
  json_data = options.json_data
@@ -532,7 +546,13 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
532
546
  is_body_allowed = options.method.lower() != "get"
533
547
 
534
548
  if is_body_allowed:
535
- if isinstance(json_data, bytes):
549
+ if options.content is not None and json_data is not None:
550
+ raise TypeError("Passing both `content` and `json_data` is not supported")
551
+ if options.content is not None and files is not None:
552
+ raise TypeError("Passing both `content` and `files` is not supported")
553
+ if options.content is not None:
554
+ kwargs["content"] = options.content
555
+ elif isinstance(json_data, bytes):
536
556
  kwargs["content"] = json_data
537
557
  else:
538
558
  kwargs["json"] = json_data if is_given(json_data) else None
@@ -1194,6 +1214,7 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
1194
1214
  *,
1195
1215
  cast_to: Type[ResponseT],
1196
1216
  body: Body | None = None,
1217
+ content: BinaryTypes | None = None,
1197
1218
  options: RequestOptions = {},
1198
1219
  files: RequestFiles | None = None,
1199
1220
  stream: Literal[False] = False,
@@ -1206,6 +1227,7 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
1206
1227
  *,
1207
1228
  cast_to: Type[ResponseT],
1208
1229
  body: Body | None = None,
1230
+ content: BinaryTypes | None = None,
1209
1231
  options: RequestOptions = {},
1210
1232
  files: RequestFiles | None = None,
1211
1233
  stream: Literal[True],
@@ -1219,6 +1241,7 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
1219
1241
  *,
1220
1242
  cast_to: Type[ResponseT],
1221
1243
  body: Body | None = None,
1244
+ content: BinaryTypes | None = None,
1222
1245
  options: RequestOptions = {},
1223
1246
  files: RequestFiles | None = None,
1224
1247
  stream: bool,
@@ -1231,13 +1254,25 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
1231
1254
  *,
1232
1255
  cast_to: Type[ResponseT],
1233
1256
  body: Body | None = None,
1257
+ content: BinaryTypes | None = None,
1234
1258
  options: RequestOptions = {},
1235
1259
  files: RequestFiles | None = None,
1236
1260
  stream: bool = False,
1237
1261
  stream_cls: type[_StreamT] | None = None,
1238
1262
  ) -> ResponseT | _StreamT:
1263
+ if body is not None and content is not None:
1264
+ raise TypeError("Passing both `body` and `content` is not supported")
1265
+ if files is not None and content is not None:
1266
+ raise TypeError("Passing both `files` and `content` is not supported")
1267
+ if isinstance(body, bytes):
1268
+ warnings.warn(
1269
+ "Passing raw bytes as `body` is deprecated and will be removed in a future version. "
1270
+ "Please pass raw bytes via the `content` parameter instead.",
1271
+ DeprecationWarning,
1272
+ stacklevel=2,
1273
+ )
1239
1274
  opts = FinalRequestOptions.construct(
1240
- method="post", url=path, json_data=body, files=to_httpx_files(files), **options
1275
+ method="post", url=path, json_data=body, content=content, files=to_httpx_files(files), **options
1241
1276
  )
1242
1277
  return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
1243
1278
 
@@ -1247,11 +1282,23 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
1247
1282
  *,
1248
1283
  cast_to: Type[ResponseT],
1249
1284
  body: Body | None = None,
1285
+ content: BinaryTypes | None = None,
1250
1286
  files: RequestFiles | None = None,
1251
1287
  options: RequestOptions = {},
1252
1288
  ) -> ResponseT:
1289
+ if body is not None and content is not None:
1290
+ raise TypeError("Passing both `body` and `content` is not supported")
1291
+ if files is not None and content is not None:
1292
+ raise TypeError("Passing both `files` and `content` is not supported")
1293
+ if isinstance(body, bytes):
1294
+ warnings.warn(
1295
+ "Passing raw bytes as `body` is deprecated and will be removed in a future version. "
1296
+ "Please pass raw bytes via the `content` parameter instead.",
1297
+ DeprecationWarning,
1298
+ stacklevel=2,
1299
+ )
1253
1300
  opts = FinalRequestOptions.construct(
1254
- method="patch", url=path, json_data=body, files=to_httpx_files(files), **options
1301
+ method="patch", url=path, json_data=body, content=content, files=to_httpx_files(files), **options
1255
1302
  )
1256
1303
  return self.request(cast_to, opts)
1257
1304
 
@@ -1261,11 +1308,23 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
1261
1308
  *,
1262
1309
  cast_to: Type[ResponseT],
1263
1310
  body: Body | None = None,
1311
+ content: BinaryTypes | None = None,
1264
1312
  files: RequestFiles | None = None,
1265
1313
  options: RequestOptions = {},
1266
1314
  ) -> ResponseT:
1315
+ if body is not None and content is not None:
1316
+ raise TypeError("Passing both `body` and `content` is not supported")
1317
+ if files is not None and content is not None:
1318
+ raise TypeError("Passing both `files` and `content` is not supported")
1319
+ if isinstance(body, bytes):
1320
+ warnings.warn(
1321
+ "Passing raw bytes as `body` is deprecated and will be removed in a future version. "
1322
+ "Please pass raw bytes via the `content` parameter instead.",
1323
+ DeprecationWarning,
1324
+ stacklevel=2,
1325
+ )
1267
1326
  opts = FinalRequestOptions.construct(
1268
- method="put", url=path, json_data=body, files=to_httpx_files(files), **options
1327
+ method="put", url=path, json_data=body, content=content, files=to_httpx_files(files), **options
1269
1328
  )
1270
1329
  return self.request(cast_to, opts)
1271
1330
 
@@ -1275,9 +1334,19 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
1275
1334
  *,
1276
1335
  cast_to: Type[ResponseT],
1277
1336
  body: Body | None = None,
1337
+ content: BinaryTypes | None = None,
1278
1338
  options: RequestOptions = {},
1279
1339
  ) -> ResponseT:
1280
- opts = FinalRequestOptions.construct(method="delete", url=path, json_data=body, **options)
1340
+ if body is not None and content is not None:
1341
+ raise TypeError("Passing both `body` and `content` is not supported")
1342
+ if isinstance(body, bytes):
1343
+ warnings.warn(
1344
+ "Passing raw bytes as `body` is deprecated and will be removed in a future version. "
1345
+ "Please pass raw bytes via the `content` parameter instead.",
1346
+ DeprecationWarning,
1347
+ stacklevel=2,
1348
+ )
1349
+ opts = FinalRequestOptions.construct(method="delete", url=path, json_data=body, content=content, **options)
1281
1350
  return self.request(cast_to, opts)
1282
1351
 
1283
1352
  def get_api_list(
@@ -1717,6 +1786,7 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
1717
1786
  *,
1718
1787
  cast_to: Type[ResponseT],
1719
1788
  body: Body | None = None,
1789
+ content: AsyncBinaryTypes | None = None,
1720
1790
  files: RequestFiles | None = None,
1721
1791
  options: RequestOptions = {},
1722
1792
  stream: Literal[False] = False,
@@ -1729,6 +1799,7 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
1729
1799
  *,
1730
1800
  cast_to: Type[ResponseT],
1731
1801
  body: Body | None = None,
1802
+ content: AsyncBinaryTypes | None = None,
1732
1803
  files: RequestFiles | None = None,
1733
1804
  options: RequestOptions = {},
1734
1805
  stream: Literal[True],
@@ -1742,6 +1813,7 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
1742
1813
  *,
1743
1814
  cast_to: Type[ResponseT],
1744
1815
  body: Body | None = None,
1816
+ content: AsyncBinaryTypes | None = None,
1745
1817
  files: RequestFiles | None = None,
1746
1818
  options: RequestOptions = {},
1747
1819
  stream: bool,
@@ -1754,13 +1826,25 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
1754
1826
  *,
1755
1827
  cast_to: Type[ResponseT],
1756
1828
  body: Body | None = None,
1829
+ content: AsyncBinaryTypes | None = None,
1757
1830
  files: RequestFiles | None = None,
1758
1831
  options: RequestOptions = {},
1759
1832
  stream: bool = False,
1760
1833
  stream_cls: type[_AsyncStreamT] | None = None,
1761
1834
  ) -> ResponseT | _AsyncStreamT:
1835
+ if body is not None and content is not None:
1836
+ raise TypeError("Passing both `body` and `content` is not supported")
1837
+ if files is not None and content is not None:
1838
+ raise TypeError("Passing both `files` and `content` is not supported")
1839
+ if isinstance(body, bytes):
1840
+ warnings.warn(
1841
+ "Passing raw bytes as `body` is deprecated and will be removed in a future version. "
1842
+ "Please pass raw bytes via the `content` parameter instead.",
1843
+ DeprecationWarning,
1844
+ stacklevel=2,
1845
+ )
1762
1846
  opts = FinalRequestOptions.construct(
1763
- method="post", url=path, json_data=body, files=await async_to_httpx_files(files), **options
1847
+ method="post", url=path, json_data=body, content=content, files=await async_to_httpx_files(files), **options
1764
1848
  )
1765
1849
  return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)
1766
1850
 
@@ -1770,11 +1854,28 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
1770
1854
  *,
1771
1855
  cast_to: Type[ResponseT],
1772
1856
  body: Body | None = None,
1857
+ content: AsyncBinaryTypes | None = None,
1773
1858
  files: RequestFiles | None = None,
1774
1859
  options: RequestOptions = {},
1775
1860
  ) -> ResponseT:
1861
+ if body is not None and content is not None:
1862
+ raise TypeError("Passing both `body` and `content` is not supported")
1863
+ if files is not None and content is not None:
1864
+ raise TypeError("Passing both `files` and `content` is not supported")
1865
+ if isinstance(body, bytes):
1866
+ warnings.warn(
1867
+ "Passing raw bytes as `body` is deprecated and will be removed in a future version. "
1868
+ "Please pass raw bytes via the `content` parameter instead.",
1869
+ DeprecationWarning,
1870
+ stacklevel=2,
1871
+ )
1776
1872
  opts = FinalRequestOptions.construct(
1777
- method="patch", url=path, json_data=body, files=await async_to_httpx_files(files), **options
1873
+ method="patch",
1874
+ url=path,
1875
+ json_data=body,
1876
+ content=content,
1877
+ files=await async_to_httpx_files(files),
1878
+ **options,
1778
1879
  )
1779
1880
  return await self.request(cast_to, opts)
1780
1881
 
@@ -1784,11 +1885,23 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
1784
1885
  *,
1785
1886
  cast_to: Type[ResponseT],
1786
1887
  body: Body | None = None,
1888
+ content: AsyncBinaryTypes | None = None,
1787
1889
  files: RequestFiles | None = None,
1788
1890
  options: RequestOptions = {},
1789
1891
  ) -> ResponseT:
1892
+ if body is not None and content is not None:
1893
+ raise TypeError("Passing both `body` and `content` is not supported")
1894
+ if files is not None and content is not None:
1895
+ raise TypeError("Passing both `files` and `content` is not supported")
1896
+ if isinstance(body, bytes):
1897
+ warnings.warn(
1898
+ "Passing raw bytes as `body` is deprecated and will be removed in a future version. "
1899
+ "Please pass raw bytes via the `content` parameter instead.",
1900
+ DeprecationWarning,
1901
+ stacklevel=2,
1902
+ )
1790
1903
  opts = FinalRequestOptions.construct(
1791
- method="put", url=path, json_data=body, files=await async_to_httpx_files(files), **options
1904
+ method="put", url=path, json_data=body, content=content, files=await async_to_httpx_files(files), **options
1792
1905
  )
1793
1906
  return await self.request(cast_to, opts)
1794
1907
 
@@ -1798,9 +1911,19 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
1798
1911
  *,
1799
1912
  cast_to: Type[ResponseT],
1800
1913
  body: Body | None = None,
1914
+ content: AsyncBinaryTypes | None = None,
1801
1915
  options: RequestOptions = {},
1802
1916
  ) -> ResponseT:
1803
- opts = FinalRequestOptions.construct(method="delete", url=path, json_data=body, **options)
1917
+ if body is not None and content is not None:
1918
+ raise TypeError("Passing both `body` and `content` is not supported")
1919
+ if isinstance(body, bytes):
1920
+ warnings.warn(
1921
+ "Passing raw bytes as `body` is deprecated and will be removed in a future version. "
1922
+ "Please pass raw bytes via the `content` parameter instead.",
1923
+ DeprecationWarning,
1924
+ stacklevel=2,
1925
+ )
1926
+ opts = FinalRequestOptions.construct(method="delete", url=path, json_data=body, content=content, **options)
1804
1927
  return await self.request(cast_to, opts)
1805
1928
 
1806
1929
  def get_api_list(
@@ -3,7 +3,20 @@ from __future__ import annotations
3
3
  import os
4
4
  import inspect
5
5
  import weakref
6
- from typing import TYPE_CHECKING, Any, Type, Union, Generic, TypeVar, Callable, Optional, cast
6
+ from typing import (
7
+ IO,
8
+ TYPE_CHECKING,
9
+ Any,
10
+ Type,
11
+ Union,
12
+ Generic,
13
+ TypeVar,
14
+ Callable,
15
+ Iterable,
16
+ Optional,
17
+ AsyncIterable,
18
+ cast,
19
+ )
7
20
  from datetime import date, datetime
8
21
  from typing_extensions import (
9
22
  List,
@@ -787,6 +800,7 @@ class FinalRequestOptionsInput(TypedDict, total=False):
787
800
  timeout: float | Timeout | None
788
801
  files: HttpxRequestFiles | None
789
802
  idempotency_key: str
803
+ content: Union[bytes, bytearray, IO[bytes], Iterable[bytes], AsyncIterable[bytes], None]
790
804
  json_data: Body
791
805
  extra_json: AnyMapping
792
806
  follow_redirects: bool
@@ -805,6 +819,7 @@ class FinalRequestOptions(pydantic.BaseModel):
805
819
  post_parser: Union[Callable[[Any], Any], NotGiven] = NotGiven()
806
820
  follow_redirects: Union[bool, None] = None
807
821
 
822
+ content: Union[bytes, bytearray, IO[bytes], Iterable[bytes], AsyncIterable[bytes], None] = None
808
823
  # It should be noted that we cannot use `json` here as that would override
809
824
  # a BaseModel method in an incompatible fashion.
810
825
  json_data: Union[Body, None] = None
@@ -13,9 +13,11 @@ from typing import (
13
13
  Mapping,
14
14
  TypeVar,
15
15
  Callable,
16
+ Iterable,
16
17
  Iterator,
17
18
  Optional,
18
19
  Sequence,
20
+ AsyncIterable,
19
21
  )
20
22
  from typing_extensions import (
21
23
  Set,
@@ -56,6 +58,13 @@ if TYPE_CHECKING:
56
58
  else:
57
59
  Base64FileInput = Union[IO[bytes], PathLike]
58
60
  FileContent = Union[IO[bytes], bytes, PathLike] # PathLike is not subscriptable in Python 3.8.
61
+
62
+
63
+ # Used for sending raw binary data / streaming data in request bodies
64
+ # e.g. for file uploads without multipart encoding
65
+ BinaryTypes = Union[bytes, bytearray, IO[bytes], Iterable[bytes]]
66
+ AsyncBinaryTypes = Union[bytes, bytearray, IO[bytes], AsyncIterable[bytes]]
67
+
59
68
  FileTypes = Union[
60
69
  # file (or bytes)
61
70
  FileContent,
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "parallel"
4
- __version__ = "0.4.0" # x-release-please-version
4
+ __version__ = "0.4.1" # x-release-please-version
@@ -90,12 +90,12 @@ class BetaResource(SyncAPIResource):
90
90
  self,
91
91
  *,
92
92
  urls: SequenceNotStr[str],
93
- betas: List[ParallelBetaParam],
94
93
  excerpts: beta_extract_params.Excerpts | Omit = omit,
95
94
  fetch_policy: Optional[FetchPolicyParam] | Omit = omit,
96
95
  full_content: beta_extract_params.FullContent | Omit = omit,
97
96
  objective: Optional[str] | Omit = omit,
98
97
  search_queries: Optional[SequenceNotStr[str]] | Omit = omit,
98
+ betas: List[ParallelBetaParam] | Omit = omit,
99
99
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
100
100
  # The extra values given here take precedence over values defined on the client or passed to this method.
101
101
  extra_headers: Headers | None = None,
@@ -110,8 +110,6 @@ class BetaResource(SyncAPIResource):
110
110
  `search-extract-2025-10-10`.
111
111
 
112
112
  Args:
113
- betas: Optional header to specify the beta version(s) to enable.
114
-
115
113
  excerpts: Include excerpts from each URL relevant to the search objective and queries.
116
114
  Note that if neither objective nor search_queries is provided, excerpts are
117
115
  redundant with full content.
@@ -125,6 +123,8 @@ class BetaResource(SyncAPIResource):
125
123
 
126
124
  search_queries: If provided, focuses extracted content on the specified keyword search queries.
127
125
 
126
+ betas: Optional header to specify the beta version(s) to enable.
127
+
128
128
  extra_headers: Send extra headers
129
129
 
130
130
  extra_query: Add additional query parameters to the request
@@ -134,10 +134,16 @@ class BetaResource(SyncAPIResource):
134
134
  timeout: Override the client-level default timeout for this request, in seconds
135
135
  """
136
136
  extra_headers = {
137
- "parallel-beta": ",".join(chain((str(e) for e in betas), ["search-extract-2025-10-10"])),
137
+ **strip_not_given(
138
+ {
139
+ "parallel-beta": ",".join(chain((str(e) for e in betas), ["search-extract-2025-10-10"]))
140
+ if is_given(betas)
141
+ else not_given
142
+ }
143
+ ),
138
144
  **(extra_headers or {}),
139
145
  }
140
- extra_headers.update({"parallel-beta": "search-extract-2025-10-10"})
146
+ extra_headers = {"parallel-beta": "search-extract-2025-10-10", **(extra_headers or {})}
141
147
  return self._post(
142
148
  "/v1beta/extract",
143
149
  body=maybe_transform(
@@ -292,12 +298,12 @@ class AsyncBetaResource(AsyncAPIResource):
292
298
  self,
293
299
  *,
294
300
  urls: SequenceNotStr[str],
295
- betas: List[ParallelBetaParam],
296
301
  excerpts: beta_extract_params.Excerpts | Omit = omit,
297
302
  fetch_policy: Optional[FetchPolicyParam] | Omit = omit,
298
303
  full_content: beta_extract_params.FullContent | Omit = omit,
299
304
  objective: Optional[str] | Omit = omit,
300
305
  search_queries: Optional[SequenceNotStr[str]] | Omit = omit,
306
+ betas: List[ParallelBetaParam] | Omit = omit,
301
307
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
302
308
  # The extra values given here take precedence over values defined on the client or passed to this method.
303
309
  extra_headers: Headers | None = None,
@@ -312,8 +318,6 @@ class AsyncBetaResource(AsyncAPIResource):
312
318
  `search-extract-2025-10-10`.
313
319
 
314
320
  Args:
315
- betas: Optional header to specify the beta version(s) to enable.
316
-
317
321
  excerpts: Include excerpts from each URL relevant to the search objective and queries.
318
322
  Note that if neither objective nor search_queries is provided, excerpts are
319
323
  redundant with full content.
@@ -327,6 +331,8 @@ class AsyncBetaResource(AsyncAPIResource):
327
331
 
328
332
  search_queries: If provided, focuses extracted content on the specified keyword search queries.
329
333
 
334
+ betas: Optional header to specify the beta version(s) to enable.
335
+
330
336
  extra_headers: Send extra headers
331
337
 
332
338
  extra_query: Add additional query parameters to the request
@@ -336,10 +342,16 @@ class AsyncBetaResource(AsyncAPIResource):
336
342
  timeout: Override the client-level default timeout for this request, in seconds
337
343
  """
338
344
  extra_headers = {
339
- "parallel-beta": ",".join(chain((str(e) for e in betas), ["search-extract-2025-10-10"])),
345
+ **strip_not_given(
346
+ {
347
+ "parallel-beta": ",".join(chain((str(e) for e in betas), ["search-extract-2025-10-10"]))
348
+ if is_given(betas)
349
+ else not_given
350
+ }
351
+ ),
340
352
  **(extra_headers or {}),
341
353
  }
342
- extra_headers.update({"parallel-beta": "search-extract-2025-10-10"})
354
+ extra_headers = {"parallel-beta": "search-extract-2025-10-10", **(extra_headers or {})}
343
355
  return await self._post(
344
356
  "/v1beta/extract",
345
357
  body=await async_maybe_transform(
@@ -17,9 +17,6 @@ __all__ = ["BetaExtractParams", "Excerpts", "FullContent", "FullContentFullConte
17
17
  class BetaExtractParams(TypedDict, total=False):
18
18
  urls: Required[SequenceNotStr[str]]
19
19
 
20
- betas: Required[Annotated[List[ParallelBetaParam], PropertyInfo(alias="parallel-beta")]]
21
- """Optional header to specify the beta version(s) to enable."""
22
-
23
20
  excerpts: Excerpts
24
21
  """Include excerpts from each URL relevant to the search objective and queries.
25
22
 
@@ -43,6 +40,9 @@ class BetaExtractParams(TypedDict, total=False):
43
40
  search_queries: Optional[SequenceNotStr[str]]
44
41
  """If provided, focuses extracted content on the specified keyword search queries."""
45
42
 
43
+ betas: Annotated[List[ParallelBetaParam], PropertyInfo(alias="parallel-beta")]
44
+ """Optional header to specify the beta version(s) to enable."""
45
+
46
46
 
47
47
  Excerpts: TypeAlias = Union[bool, ExcerptSettingsParam]
48
48
 
@@ -25,7 +25,6 @@ class TestBeta:
25
25
  def test_method_extract(self, client: Parallel) -> None:
26
26
  beta = client.beta.extract(
27
27
  urls=["string"],
28
- betas=["mcp-server-2025-07-17"],
29
28
  )
30
29
  assert_matches_type(ExtractResponse, beta, path=["response"])
31
30
 
@@ -33,7 +32,6 @@ class TestBeta:
33
32
  def test_method_extract_with_all_params(self, client: Parallel) -> None:
34
33
  beta = client.beta.extract(
35
34
  urls=["string"],
36
- betas=["mcp-server-2025-07-17"],
37
35
  excerpts=True,
38
36
  fetch_policy={
39
37
  "disable_cache_fallback": True,
@@ -43,6 +41,7 @@ class TestBeta:
43
41
  full_content=True,
44
42
  objective="objective",
45
43
  search_queries=["string"],
44
+ betas=["mcp-server-2025-07-17"],
46
45
  )
47
46
  assert_matches_type(ExtractResponse, beta, path=["response"])
48
47
 
@@ -50,7 +49,6 @@ class TestBeta:
50
49
  def test_raw_response_extract(self, client: Parallel) -> None:
51
50
  response = client.beta.with_raw_response.extract(
52
51
  urls=["string"],
53
- betas=["mcp-server-2025-07-17"],
54
52
  )
55
53
 
56
54
  assert response.is_closed is True
@@ -62,7 +60,6 @@ class TestBeta:
62
60
  def test_streaming_response_extract(self, client: Parallel) -> None:
63
61
  with client.beta.with_streaming_response.extract(
64
62
  urls=["string"],
65
- betas=["mcp-server-2025-07-17"],
66
63
  ) as response:
67
64
  assert not response.is_closed
68
65
  assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -134,7 +131,6 @@ class TestAsyncBeta:
134
131
  async def test_method_extract(self, async_client: AsyncParallel) -> None:
135
132
  beta = await async_client.beta.extract(
136
133
  urls=["string"],
137
- betas=["mcp-server-2025-07-17"],
138
134
  )
139
135
  assert_matches_type(ExtractResponse, beta, path=["response"])
140
136
 
@@ -142,7 +138,6 @@ class TestAsyncBeta:
142
138
  async def test_method_extract_with_all_params(self, async_client: AsyncParallel) -> None:
143
139
  beta = await async_client.beta.extract(
144
140
  urls=["string"],
145
- betas=["mcp-server-2025-07-17"],
146
141
  excerpts=True,
147
142
  fetch_policy={
148
143
  "disable_cache_fallback": True,
@@ -152,6 +147,7 @@ class TestAsyncBeta:
152
147
  full_content=True,
153
148
  objective="objective",
154
149
  search_queries=["string"],
150
+ betas=["mcp-server-2025-07-17"],
155
151
  )
156
152
  assert_matches_type(ExtractResponse, beta, path=["response"])
157
153
 
@@ -159,7 +155,6 @@ class TestAsyncBeta:
159
155
  async def test_raw_response_extract(self, async_client: AsyncParallel) -> None:
160
156
  response = await async_client.beta.with_raw_response.extract(
161
157
  urls=["string"],
162
- betas=["mcp-server-2025-07-17"],
163
158
  )
164
159
 
165
160
  assert response.is_closed is True
@@ -171,7 +166,6 @@ class TestAsyncBeta:
171
166
  async def test_streaming_response_extract(self, async_client: AsyncParallel) -> None:
172
167
  async with async_client.beta.with_streaming_response.extract(
173
168
  urls=["string"],
174
- betas=["mcp-server-2025-07-17"],
175
169
  ) as response:
176
170
  assert not response.is_closed
177
171
  assert response.http_request.headers.get("X-Stainless-Lang") == "python"