Skip to content

Commit 93a9472

Browse files
feat(api): api update
1 parent bf48ceb commit 93a9472

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: 20
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-f15e63fe284d980e63fbbba5b3f845f91565f43e4c0b3182bb5d8bd55fda2a51.yml
3-
openapi_spec_hash: 5f833c91cc4541722b10451a4629c1bc
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-93cf699701172f25e4f6d5053b0573eeb51a79707de94a137ac23d0aaeb76e36.yml
3+
openapi_spec_hash: 4abd14fccd70b0cb0397776e6b5b9171
44
config_hash: 91cf2dcefb99c39eb9cd3e98e15d6011

src/brand/dev/resources/brand.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2477,11 +2477,10 @@ def web_scrape_md(
24772477
timeout: float | httpx.Timeout | None | NotGiven = not_given,
24782478
) -> BrandWebScrapeMdResponse:
24792479
"""
2480-
Scrapes the given URL, converts the HTML content to Markdown, and returns the
2481-
result.
2480+
Scrapes the given URL into LLM usable Markdown.
24822481
24832482
Args:
2484-
url: Full URL to scrape and convert to markdown (must include http:// or https://
2483+
url: Full URL to scrape into LLM usable Markdown (must include http:// or https://
24852484
protocol)
24862485
24872486
include_images: Include image references in Markdown output
@@ -2490,7 +2489,7 @@ def web_scrape_md(
24902489
24912490
max_age_ms: Return a cached result if a prior scrape for the same parameters exists and is
24922491
younger than this many milliseconds. Defaults to 1 day (86400000 ms) when
2493-
omitted. Set to 0 to always scrape fresh.
2492+
omitted. Max is 30 days (2592000000 ms). Set to 0 to always scrape fresh.
24942493
24952494
shorten_base64_images: Shorten base64-encoded image data in the Markdown output
24962495
@@ -4993,11 +4992,10 @@ async def web_scrape_md(
49934992
timeout: float | httpx.Timeout | None | NotGiven = not_given,
49944993
) -> BrandWebScrapeMdResponse:
49954994
"""
4996-
Scrapes the given URL, converts the HTML content to Markdown, and returns the
4997-
result.
4995+
Scrapes the given URL into LLM usable Markdown.
49984996
49994997
Args:
5000-
url: Full URL to scrape and convert to markdown (must include http:// or https://
4998+
url: Full URL to scrape into LLM usable Markdown (must include http:// or https://
50014999
protocol)
50025000
50035001
include_images: Include image references in Markdown output
@@ -5006,7 +5004,7 @@ async def web_scrape_md(
50065004
50075005
max_age_ms: Return a cached result if a prior scrape for the same parameters exists and is
50085006
younger than this many milliseconds. Defaults to 1 day (86400000 ms) when
5009-
omitted. Set to 0 to always scrape fresh.
5007+
omitted. Max is 30 days (2592000000 ms). Set to 0 to always scrape fresh.
50105008
50115009
shorten_base64_images: Shorten base64-encoded image data in the Markdown output
50125010

src/brand/dev/types/brand_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 BrandWebScrapeMdParams(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 BrandWebScrapeMdParams(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)