Skip to content

@ai-sdk/replicate@3.0.77

Choose a tag to compare

@github-actions github-actions released this 06 Nov 19:46
· 13 commits to main since this release
9ae0c49

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 abortSignal or polling gave up after maxPollAttempts — stopped polling but left the prediction running on Replicate, where it kept consuming compute. The image model now sends a best-effort cancel request to POST /predictions/{prediction_id}/cancel in those cases. The cancel URL is built from the configured base URL instead of the response body's urls.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.