Repository navigation
@ai-sdk/replicate@3.0.77
Patch Changes
-
082d786: Refactor Replicate model ID logic into a model catalog that declares capabilities and provider options, and generate provider capability documentation from it. Request behavior is unchanged.
-
0d47a6c: fix(replicate): cancel abandoned image predictions on abort or poll timeout
Image generations that were abandoned — the caller aborted via
abortSignalor polling gave up aftermaxPollAttempts— stopped polling but left the prediction running on Replicate, where it kept consuming compute. The image model now sends a best-effort cancel request toPOST /predictions/{prediction_id}/cancelin those cases. The cancel URL is built from the configured base URL instead of the response body'surls.cancel, so configured credentials are only sent to the provider origin. Cancellation uses only the provider headers, never reuses the aborted signal, is never retried, and never replaces the abort or timeout error.