github vercel/ai @ai-sdk/replicate@3.0.77

latest releases: @ai-sdk/zai@3.0.48, @ai-sdk/workflow-harness@1.0.175, @ai-sdk/workflow@2.0.96...
one hour ago

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.

Don't miss a new ai release

NewReleases is sending notifications on new releases.