Skip to content

Commit 648e71b

Browse files
feat(api): api update
1 parent 656e585 commit 648e71b

3 files changed

Lines changed: 10 additions & 12 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: 21
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev%2Fcontext.dev-c023cdf4ae403e8c32724869eff157cb24d4436b7c048809571c41f08dd20e03.yml
3-
openapi_spec_hash: b92878e27bdb184e1506f4baf3280118
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev%2Fcontext.dev-8ef1d8ed8ceacb8e8e73a5b6069c63adc9c0fd74d9b9aa9dee8b218cf94eac41.yml
3+
openapi_spec_hash: 5271c711707ccf1deb2a47e0fb1119b7
44
config_hash: 682b89b02a20f5d1c13e2c91ecbcf5ce

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -310,11 +310,10 @@ def web_scrape_md(
310310
timeout: float | httpx.Timeout | None | NotGiven = not_given,
311311
) -> WebWebScrapeMdResponse:
312312
"""
313-
Scrapes the given URL, converts the HTML content to Markdown, and returns the
314-
result.
313+
Scrapes the given URL into LLM usable Markdown.
315314
316315
Args:
317-
url: Full URL to scrape and convert to markdown (must include http:// or https://
316+
url: Full URL to scrape into LLM usable Markdown (must include http:// or https://
318317
protocol)
319318
320319
include_images: Include image references in Markdown output
@@ -323,7 +322,7 @@ def web_scrape_md(
323322
324323
max_age_ms: Return a cached result if a prior scrape for the same parameters exists and is
325324
younger than this many milliseconds. Defaults to 1 day (86400000 ms) when
326-
omitted. Set to 0 to always scrape fresh.
325+
omitted. Max is 30 days (2592000000 ms). Set to 0 to always scrape fresh.
327326
328327
shorten_base64_images: Shorten base64-encoded image data in the Markdown output
329328
@@ -686,11 +685,10 @@ async def web_scrape_md(
686685
timeout: float | httpx.Timeout | None | NotGiven = not_given,
687686
) -> WebWebScrapeMdResponse:
688687
"""
689-
Scrapes the given URL, converts the HTML content to Markdown, and returns the
690-
result.
688+
Scrapes the given URL into LLM usable Markdown.
691689
692690
Args:
693-
url: Full URL to scrape and convert to markdown (must include http:// or https://
691+
url: Full URL to scrape into LLM usable Markdown (must include http:// or https://
694692
protocol)
695693
696694
include_images: Include image references in Markdown output
@@ -699,7 +697,7 @@ async def web_scrape_md(
699697
700698
max_age_ms: Return a cached result if a prior scrape for the same parameters exists and is
701699
younger than this many milliseconds. Defaults to 1 day (86400000 ms) when
702-
omitted. Set to 0 to always scrape fresh.
700+
omitted. Max is 30 days (2592000000 ms). Set to 0 to always scrape fresh.
703701
704702
shorten_base64_images: Shorten base64-encoded image data in the Markdown output
705703

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class WebWebScrapeMdParams(TypedDict, total=False):
1313
url: Required[str]
1414
"""
15-
Full URL to scrape and convert to markdown (must include http:// or https://
15+
Full URL to scrape into LLM usable Markdown (must include http:// or https://
1616
protocol)
1717
"""
1818

@@ -26,7 +26,7 @@ class WebWebScrapeMdParams(TypedDict, total=False):
2626
"""
2727
Return a cached result if a prior scrape for the same parameters exists and is
2828
younger than this many milliseconds. Defaults to 1 day (86400000 ms) when
29-
omitted. Set to 0 to always scrape fresh.
29+
omitted. Max is 30 days (2592000000 ms). Set to 0 to always scrape fresh.
3030
"""
3131

3232
shorten_base64_images: Annotated[bool, PropertyInfo(alias="shortenBase64Images")]

0 commit comments

Comments
 (0)