Skip to content

Commit e7cd1ff

Browse files
author
stlc-bot
committed
feat(web-search): extend page cache defaults (#1408)
Stainless-Generated-From: f5a90426246341f611ef7d2307eef718b4a2744b
1 parent 2a68e19 commit e7cd1ff

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,9 +373,11 @@ class MarkdownOptions(TypedDict, total=False):
373373
"""Keep hyperlinks in the Markdown."""
374374

375375
max_age_ms: Annotated[int, PropertyInfo(alias="maxAgeMs")]
376-
"""Cache TTL in ms for scraped Markdown keyed by URL + options.
376+
"""Maximum cache age in milliseconds for result page content.
377377
378-
Default 15 days, max 30 days. Set to 0 to force a fresh scrape.
378+
Defaults to 180 days (15552000000 ms) when Markdown is requested, or 365 days
379+
(31536000000 ms) when only highlights are requested. Explicit values override
380+
either default. Maximum: 365 days. Set to 0 to force a fresh scrape.
379381
"""
380382

381383
pdf: MarkdownOptionsPdf

0 commit comments

Comments
 (0)