unstale

npm / @ai-sdk/provider-utils

@ai-sdk/provider-utils

What changed in @ai-sdk/provider-utils 4 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.

2 breaking3 security5 new APIs and options5 behavior and defaults10 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.1.1 on npm

@ai-sdk/provider-utils 520 changes

Breaking changes 2

  • Arrays passed directly as state are interpreted as decision state parts; wrap JSON arrays in an object or a json part.

    5.0.57release notes

  • The API previously named evaluate is renamed to decide.

    5.0.54release notes

New APIs and options 5

  • Adds the box decision question type with image bounds for TypeSafe AI.

    5.0.62release notes

  • Experimental decision state now supports ordered text, file, and JSON parts, and public state forms are normalized into parts before providers are called.

    5.0.57release notes

  • Image input is supported in OpenAI Decisions and language model adapters.

    5.0.57release notes

  • Adds the portable max reasoning level, widening LanguageModelV4CallOptions['reasoning'] and ReasoningLevel; exhaustive consumers must handle max.

    5.0.55release notes

  • Experimental streaming lifecycle callbacks were added for speech generation and transcription.

    5.0.53release notes

Behavior and default changes 5

  • Decision choice responses now accept exact criteria labels.

    5.0.59release notes

  • Decision file bytes are serialized as base64 in state attributes; model-call spans record normalized state parts, while outer spans retain public state inputs.

    5.0.57release notes

  • Bedrock Nova 2 maps portable xhigh to maxReasoningEffort: 'high' and returns a compatibility warning; Fireworks maps max to high and returns warnings for minimal, xhigh, and max in generation and streaming results.

    5.0.55release notes

  • Provider usage is propagated for speech generation and transcription telemetry.

    5.0.53release notes

  • Telemetry was added to speech generation and transcription.

    5.0.53release notes

Fixes and other changes 8

  • URL paths and query values now retain case sensitivity.

    4.0.59, 5.0.60release notesrelease notes

  • Shared state is labeled in language-model decision prompts.

    5.0.57release notes

  • TypeSafe AI preserves native JSON state when state contains one JSON part.

    5.0.57release notes

  • Rows are limited to 64 MB during batch result downloads.

    5.0.55release notes

  • Parallel tool calls are preserved when stream labels are missing or reused.

    5.0.55release notes

  • Hostname parts are validated using isValidHostnamePart.

    5.0.53release notes

  • Use a standards-compliant User-Agent header.

    5.0.51release notes

  • Fixes streamed tool calls with missing, blank, or repeated IDs.

    5.0.50release notes

@ai-sdk/provider-utils 45 changes

Security 3

  • Adds opt-in URL validation and credential origin handling for URL-based image responses, including redirect validation, unsafe header stripping, and dropping credentials on cross-origin redirects; existing unvalidated requests are preserved.

    4.0.61release notes

  • Default Node.js downloads retain DNS validation and connection pinning when frameworks or instrumentation wrap global fetch before or after the SDK loads.

    3.0.41, 4.0.57release notesrelease notes

  • Prevents SSRF in OAuth metadata discovery.

    3.0.41, 4.0.57release notesrelease notes

Fixes and other changes 2