Skip to content

Commit 9a5597d

Browse files
author
stlc-bot
committed
fix(scrape): only flag partial success when a requested format succeeds (#1325)
Stainless-Generated-From: 1136aaa
1 parent 959b17f commit 9a5597d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -417,11 +417,11 @@ class WebScrapeResponse(BaseModel):
417417

418418
is_partial: Optional[Literal[True]] = FieldInfo(alias="isPartial", default=None)
419419
"""
420-
Present when a requested output fails, capture returns a page that is still
421-
loading, images return before processing finishes, or the optional product AI
422-
fallback fails or is cut short. Check each output's success field for its
423-
result. Valid captured pieces may be cached independently; failed retrievals and
424-
incomplete captures are not cached.
420+
Present when at least one requested output succeeds while another fails, or when
421+
successful outputs come from a page that is still loading or images returned
422+
before processing finished. Absent when every requested output fails. Check each
423+
output's success field for its result. Valid captured pieces may be cached
424+
independently; failed retrievals and incomplete captures are not cached.
425425
"""
426426

427427
key_metadata: Optional[KeyMetadata] = None

0 commit comments

Comments
 (0)