unstale

npm / @openrouter/ai-sdk-provider

@openrouter/ai-sdk-provider

What changed in @openrouter/ai-sdk-provider 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.

2 breaking2 security10 new APIs and options1 behavior and defaults16 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

@openrouter/ai-sdk-provider 34 changes

Breaking changes 1

  • Image generation switches to a dedicated images API.

    3.0.0release notes

New APIs and options 2

  • Adds evaluationModel backed by the Decisions API.

    3.1.0release notes

  • The provider adds support for Vercel AI SDK v7.

    3.0.0release notes

Fixes and other changes 1

  • Consecutive streaming reasoning.summary deltas are now merged.

    3.1.0release notes

@openrouter/ai-sdk-provider 227 changes

Breaking changes 1

  • Accumulated reasoning_details are no longer attached to reasoning-delta events.

    2.7.0release notes

Security 2

  • Signature validation now also covers the Gemini format.

    2.5.1release notes

  • Entries without valid signatures are stripped from reasoning.text.

    2.3.3release notes

New APIs and options 8

  • You can now opt out of response_format strict mode.

    2.9.0release notes

  • Adds video generation support through VideoModelV3.

    2.8.0release notes

  • Anthropic eager_input_streaming is now supported via tool providerOptions.

    2.7.0release notes

  • Temperature and other common settings can now be set in model-level configuration.

    2.7.0release notes

  • Adds a provider-defined web search tool for use with OpenRouter.

    2.6.0release notes

  • Adds support for video URLs.

    2.5.0release notes

  • Adds the appName option for app identification headers.

    2.4.0release notes

  • Adds the appUrl option for app identification headers.

    2.4.0release notes

Behavior and default changes 1

Fixes and other changes 15

  • Sends null content for tool-only assistant messages.

    2.9.1release notes

  • Trailing-whitespace deltas no longer emit duplicate tool-call events.

    2.9.0release notes

  • The image URL regex now allows query strings and fragments.

    2.9.0release notes

  • Preserves empty reasoning_details arrays in multi-turn conversations.

    2.8.1release notes

  • A defensive usage fallback was added in the streaming flush handler.

    2.7.0release notes

  • Serializes tool call arguments deterministically for cache consistency.

    2.6.0release notes

  • Enforces unique tool call IDs for parallel tool calls.

    2.6.0release notes

  • Streaming tool call lifecycles now emit tool-input-end events.

    2.4.3release notes

  • The provider now respects AI_SDK_LOG_WARNINGS when controlling warning logs.

    2.4.2release notes

  • Prevents duplicate reasoning blocks when a signature arrives after text.

    2.4.2release notes

  • Reasoning and text streams now use unique IDs.

    2.4.2release notes

  • Stops emitting [REDACTED] for encrypted reasoning details.

    2.4.1release notes

  • Infers the tool-calls finish reason when finish_reason is unknown.

    2.4.0release notes

  • Handles socket termination during a stream gracefully.

    2.4.0release notes

  • Tool messages now include the tool name to match the OpenAI API specification.

    2.4.0release notes