You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e1761c5
Browse filesBrowse the repository at this point in the historyBrowse files
stlc-bot
committed
fix(scrape): preserve successful formats when other outputs fail (#1263)
Extract the product with a specialized model when the page has no structured
219
-
product data. Adds six credits when the model returns a verdict. If the fallback
220
-
fails, returns a partial response with the deterministic result and no fallback
221
-
charge. Request deadlines and client disconnects still apply.
230
+
product data. Adds six credits when the model verdict is returned successfully.
231
+
If the fallback fails, the product output has success: false and data: null with
232
+
no fallback charge; other outputs remain available. Request deadlines and client
233
+
disconnects still apply.
222
234
"""
223
235
224
236
@@ -387,7 +399,7 @@ class SharedParams(TypedDict, total=False):
387
399
classTimeoutOpts(TypedDict, total=False):
388
400
"""Total deadline, including navigation, actions, waiting, and all outputs.
389
401
390
-
Defaults to 60000 milliseconds with behavior fail. Use return-partial to capture the current page state and return captured images if image processing cannot finish before the deadline; these responses set isPartialand are not cached. Every requested format must still be available. Fixed waits must fit before a response reserve of up to 5000 milliseconds (at most one quarter of the timeout) when using return-partial.
402
+
Defaults to 60000 milliseconds with behavior fail. Individual outputs have internal deadlines that reserve time to return completed outputs; timed-out outputs have success: false and data: null under either behavior. The overall request deadline remains enforced: fail returns an error if that deadline is reached. Use return-partial to allow the current page state and available outputs when the page is still loading. Partial responses set isPartial. Failed retrievals and incomplete captures are not cached; valid captured pieces may be cached independently. Fixed waits must fit before a response reserve of up to 5000 milliseconds (at most one quarter of the timeout) when using return-partial.
0 commit comments