Skip to content

Commit cfc5fb3

Browse files
feat(api): OpenAPI changes
Migration guides added to the paths
1 parent cfdea3b commit cfc5fb3

2 files changed

Lines changed: 18 additions & 10 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 24
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web%2Fparallel-sdk-57e1c56be0942c131ab5f24d8620de166d0721ef7f3423532abc7027e5a989e7.yml
3-
openapi_spec_hash: e61f831e30d19590eb3138a1b1709d1d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web%2Fparallel-sdk-3283d0ed1520a152928edc5dee967f6ee0ee70d434d5ea96dbfc60202672417d.yml
3+
openapi_spec_hash: 9cd5bd74222a21612086b1ca0ad6725d
44
config_hash: e17d82e9cb35004e5f9a9d3c4cf51aeb

src/parallel/_client.py

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,10 @@ def extract(
247247
"""
248248
Extracts relevant content from specific web URLs.
249249
250-
The legacy Extract API reference is available
251-
[here](https://docs.parallel.ai/api-reference/legacy/extract-beta/extract).
250+
The legacy Extract API reference (`/v1beta/extract` endpoint) is available
251+
[here](https://docs.parallel.ai/api-reference/legacy/extract-beta/extract), and
252+
migration guide is
253+
[here](https://docs.parallel.ai/extract/extract-migration-guide).
252254
253255
Args:
254256
urls: URLs to extract content from. Up to 20 URLs.
@@ -322,8 +324,10 @@ def search(
322324
"""
323325
Searches the web.
324326
325-
The legacy Search API reference is available
326-
[here](https://docs.parallel.ai/api-reference/legacy/search-beta/search).
327+
The legacy Search API reference (`/v1beta/search` endpoint) is available
328+
[here](https://docs.parallel.ai/api-reference/legacy/search-beta/search), and
329+
migration guide is
330+
[here](https://docs.parallel.ai/search/search-migration-guide).
327331
328332
Args:
329333
search_queries: Concise keyword search queries, 3-6 words each. At least one query is required,
@@ -594,8 +598,10 @@ async def extract(
594598
"""
595599
Extracts relevant content from specific web URLs.
596600
597-
The legacy Extract API reference is available
598-
[here](https://docs.parallel.ai/api-reference/legacy/extract-beta/extract).
601+
The legacy Extract API reference (`/v1beta/extract` endpoint) is available
602+
[here](https://docs.parallel.ai/api-reference/legacy/extract-beta/extract), and
603+
migration guide is
604+
[here](https://docs.parallel.ai/extract/extract-migration-guide).
599605
600606
Args:
601607
urls: URLs to extract content from. Up to 20 URLs.
@@ -669,8 +675,10 @@ async def search(
669675
"""
670676
Searches the web.
671677
672-
The legacy Search API reference is available
673-
[here](https://docs.parallel.ai/api-reference/legacy/search-beta/search).
678+
The legacy Search API reference (`/v1beta/search` endpoint) is available
679+
[here](https://docs.parallel.ai/api-reference/legacy/search-beta/search), and
680+
migration guide is
681+
[here](https://docs.parallel.ai/search/search-migration-guide).
674682
675683
Args:
676684
search_queries: Concise keyword search queries, 3-6 words each. At least one query is required,

0 commit comments

Comments
 (0)