Skip to content

Commit 06f5e93

Browse files
feat(api): api update
1 parent 53fc747 commit 06f5e93

4 files changed

Lines changed: 16 additions & 11 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: 25
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-8f6bc62256b5a4aa44e82389bfefee1d73172856c407567bba11a82fd4203641.yml
3-
openapi_spec_hash: 8b7230de56ecbec4712fa1e81067a75c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-d605be55fd51d8f3ae53439a3bbcdcd20c4c78e3d9dcec9bf0bbf326290f0dd5.yml
3+
openapi_spec_hash: 2f6a14c5ab9716e73da8e1c03df8cab6
44
config_hash: f86a4e06ae5ed725aa79d58d7a8dc27c

‎src/context/dev/resources/web.py‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ def extract(
116116
max_age_ms: Return cached scrape results if a prior scrape for the same parameters is
117117
younger than this many milliseconds. Defaults to 7 days (604800000 ms).
118118
119-
stop_after_ms: Soft time budget for the crawl in milliseconds.
119+
stop_after_ms: Soft time budget for the crawl in milliseconds. Min: 10000 (10s). Max: 110000
120+
(110s). Default: 80000 (80s).
120121
121122
timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
122123
than this value, it will be aborted with a 408 status code. Maximum allowed
@@ -568,8 +569,8 @@ def web_crawl_md(
568569
569570
stop_after_ms: Soft time budget for the crawl in milliseconds. After each scrape, the crawler
570571
checks the elapsed time and, if exceeded, returns the pages collected so far
571-
instead of continuing. Min: 10000 (10s). Max: 240000 (4 min). Default: 120000 (2
572-
min).
572+
instead of continuing. Min: 10000 (10s). Max: 110000 (110s). Default: 80000
573+
(80s).
573574
574575
timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
575576
than this value, it will be aborted with a 408 status code. Maximum allowed
@@ -1019,7 +1020,8 @@ async def extract(
10191020
max_age_ms: Return cached scrape results if a prior scrape for the same parameters is
10201021
younger than this many milliseconds. Defaults to 7 days (604800000 ms).
10211022
1022-
stop_after_ms: Soft time budget for the crawl in milliseconds.
1023+
stop_after_ms: Soft time budget for the crawl in milliseconds. Min: 10000 (10s). Max: 110000
1024+
(110s). Default: 80000 (80s).
10231025
10241026
timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
10251027
than this value, it will be aborted with a 408 status code. Maximum allowed
@@ -1471,8 +1473,8 @@ async def web_crawl_md(
14711473
14721474
stop_after_ms: Soft time budget for the crawl in milliseconds. After each scrape, the crawler
14731475
checks the elapsed time and, if exceeded, returns the pages collected so far
1474-
instead of continuing. Min: 10000 (10s). Max: 240000 (4 min). Default: 120000 (2
1475-
min).
1476+
instead of continuing. Min: 10000 (10s). Max: 110000 (110s). Default: 80000
1477+
(80s).
14761478
14771479
timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
14781480
than this value, it will be aborted with a 408 status code. Maximum allowed

‎src/context/dev/types/web_extract_params.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ class WebExtractParams(TypedDict, total=False):
5555
pdf: Pdf
5656

5757
stop_after_ms: Annotated[int, PropertyInfo(alias="stopAfterMs")]
58-
"""Soft time budget for the crawl in milliseconds."""
58+
"""Soft time budget for the crawl in milliseconds.
59+
60+
Min: 10000 (10s). Max: 110000 (110s). Default: 80000 (80s).
61+
"""
5962

6063
timeout_ms: Annotated[int, PropertyInfo(alias="timeoutMS")]
6164
"""Optional timeout in milliseconds for the request.

‎src/context/dev/types/web_web_crawl_md_params.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ class WebWebCrawlMdParams(TypedDict, total=False):
7575
"""Soft time budget for the crawl in milliseconds.
7676
7777
After each scrape, the crawler checks the elapsed time and, if exceeded, returns
78-
the pages collected so far instead of continuing. Min: 10000 (10s). Max: 240000
79-
(4 min). Default: 120000 (2 min).
78+
the pages collected so far instead of continuing. Min: 10000 (10s). Max: 110000
79+
(110s). Default: 80000 (80s).
8080
"""
8181

8282
timeout_ms: Annotated[int, PropertyInfo(alias="timeoutMS")]

0 commit comments

Comments
 (0)