unstale

npm / @ai-sdk/amazon-bedrock

@ai-sdk/amazon-bedrock

What changed in @ai-sdk/amazon-bedrock 3 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

139 breaking1 security20 deprecations40 new APIs and options1 performance25 behavior and defaults1 tooling46 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

@ai-sdk/amazon-bedrock 772 changes

Breaking changes 40

  • The package is ESM-only; consumers using require() must switch to ESM import syntax.

    5.0.0, 7.0.0release notesupgrade guide

  • OpenTelemetry span collection is no longer built into the ai package; install this package and register an OpenTelemetry instance globally to receive traces.

    7.0.0upgrade guide

  • CallSettings is split into LanguageModelCallOptions and RequestOptions; replace usages with LanguageModelCallOptions & Omit<RequestOptions, 'timeout'>.

    7.0.0upgrade guide

  • Top-level generateText and streamText content now accumulates values across every step; use finalStep.content for final-step-only values.

    7.0.0upgrade guide

  • Stabilizes the tool callback option formerly named experimental_context. Tool-specific context is now scoped and typed from contextSchema, with values supplied through toolsContext.

    7.0.0upgrade guide

  • The deprecated experimental_customProvider export is removed; use customProvider instead. Its options and behavior are unchanged.

    7.0.0upgrade guide

  • The deprecated option has been removed; replace remaining usages with activeTools.

    7.0.0upgrade guide

  • The deprecated experimental_prepareStep option is removed; use prepareStep instead.

    7.0.0upgrade guide

  • Removes the tracer property; pass a custom OpenTelemetry Tracer to the OpenTelemetry constructor instead.

    7.0.0upgrade guide

  • Tool-result file content uses a canonical file variant with a tagged data union and a required mediaType, replacing image-* and file-* variants.

    7.0.0upgrade guide

  • Top-level files and other step result collections now accumulate values across every step; use finalStep for final-step-only values.

    7.0.0upgrade guide

  • The deprecated experimental_generateImage export is removed; use generateImage instead.

    7.0.0upgrade guide

  • The deprecated Experimental_GenerateImageResult type export is removed; use GenerateImageResult instead.

    7.0.0upgrade guide

  • Request bodies are no longer included in generateText and streamText step results by default; opt in with include.requestBody.

    7.0.0upgrade guide

  • generateText no longer includes response bodies by default; opt in with include.responseBody.

    7.0.0upgrade guide

  • Rename stepCountIs imports and usage to isStepCount in tool-loop stop conditions.

    7.0.0upgrade guide

  • The deprecated function has been removed; use isToolUIPart instead.

    7.0.0upgrade guide

  • Removes the deprecated top-level cachedInputTokens field; use inputTokenDetails.cacheReadTokens instead.

    7.0.0upgrade guide

  • Removes the deprecated top-level reasoningTokens field; use outputTokenDetails.reasoningTokens instead.

    7.0.0upgrade guide

  • The redirect option now defaults to error instead of follow, rejecting HTTP redirects by default to prevent SSRF.

    7.0.0upgrade guide

  • The deprecated tool-result content part type has been removed; use the file variant for inline tool-result file content.

    7.0.0upgrade guide

  • Raises the minimum supported Node.js version to 22; supported versions are 22, 24, and 26.

    5.0.0, 7.0.0release notesupgrade guide

  • Renames the telemetry integration callback and tracing-channel event type from onEmbedFinish to onEmbedEnd.

    7.0.0upgrade guide

  • Renames the per-call callback for completed embed and embedMany operations from experimental_onFinish to onEnd.

    7.0.0upgrade guide

  • Renames the per-call callback for completed rerank operations from experimental_onFinish to onEnd.

    7.0.0upgrade guide

  • The onEnd callback follows the result shape changes: usage and collection properties cover all steps, while final-step-only properties are available on finalStep.

    7.0.0upgrade guide

  • Renames the telemetry integration callback and tracing-channel event type from onRerankFinish to onRerankEnd.

    7.0.0upgrade guide

  • The generation start callback is renamed from experimental_onStart to onStart for generateText, streamText, and agents.

    7.0.0upgrade guide

  • The per-step start callback is renamed from experimental_onStepStart to onStepStart for generateText, streamText, and agents.

    7.0.0upgrade guide

  • The deprecated experimental_output option and generateText result property are removed; use output for both call options and result access.

    7.0.0upgrade guide

  • Messages returned by prepareStep become the base for subsequent steps, combined with the previous step's response messages.

    7.0.0upgrade guide

  • Shared generation and agent runtime data now flows through runtimeContext, separately from tool-specific context.

    7.0.0upgrade guide

  • Each step's response.messages now contains only messages produced by that step, rather than the accumulated history; use result.responseMessages for the full history.

    7.0.0upgrade guide

  • onChunk now receives every TextStreamPart, including lifecycle, boundary, and terminal parts; handlers should guard the chunk types they process.

    7.0.0upgrade guide

  • System messages in prompt or messages are rejected by default; use the top-level instructions option or opt in with allowSystemInMessages for trusted existing messages.

    7.0.0upgrade guide

  • Approval policy can be configured on a generation call or agent, allowing it to vary by request.

    7.0.0upgrade guide

  • The deprecated type has been removed; replace remaining usages with ToolExecutionOptions.

    7.0.0upgrade guide

  • Top-level toolCalls and related step result collections now accumulate values across every step; use finalStep for final-step-only values.

    7.0.0upgrade guide

  • Pass per-tool context values through toolsContext, keyed by tool name; contextual tools declare their fields with contextSchema.

    7.0.0upgrade guide

  • generateText and streamText usage now reports total token usage across all steps; use finalStep.usage for final-step-only usage.

    7.0.0upgrade guide

Deprecations 18

  • The Chat class exported from @ai-sdk/vue is deprecated in favor of the useChat composable.

    7.0.0upgrade guide

  • The user-message image content part is deprecated; use a file part with an image mediaType instead.

    7.0.0upgrade guide

  • Moves the raw chunk inclusion option from top-level includeRawChunks into include.rawChunks; the old option continues to work as a deprecated alias.

    7.0.0upgrade guide

  • The top-level system prompt option and related prepareStep, repair, and lifecycle fields are renamed to instructions; system remains a deprecated fallback, with instructions taking precedence.

    7.0.0upgrade guide

  • The needsApproval property on tool() and dynamicTool() is deprecated; move approval logic to toolApproval on the call or agent.

    7.0.0upgrade guide

  • Renames the final lifecycle callback for text generation, streaming, and agents from onFinish to onEnd. onFinish remains a deprecated alias; onEnd takes precedence when both are provided.

    7.0.0upgrade guide

  • Renames the per-step lifecycle callback from onStepFinish to onStepEnd. The old name remains a deprecated alias for user-facing callbacks; onStepEnd takes precedence.

    7.0.0upgrade guide

  • Renames experimental_onToolCallFinish to onToolExecutionEnd; the old name remains a deprecated fallback.

    7.0.0upgrade guide

  • Renames experimental_onToolCallStart to onToolExecutionStart; the old name remains a deprecated fallback.

    7.0.0upgrade guide

  • The top-level final-step providerMetadata property is deprecated; use result.finalStep.providerMetadata.

    7.0.0upgrade guide

  • Top-level final-step result properties, including reasoning, are deprecated; use result.finalStep for final-step reasoning or metadata.

    7.0.0upgrade guide

  • The top-level final-step reasoningText property is deprecated; use result.finalStep.reasoningText.

    7.0.0upgrade guide

  • The top-level final-step request property is deprecated; use result.finalStep.request.

    7.0.0upgrade guide

  • The top-level final-step response property is deprecated; use result.finalStep.response.

    7.0.0upgrade guide

  • Renames the full event stream property to stream; fullStream remains available as a deprecated alias.

    7.0.0upgrade guide

  • totalUsage is deprecated; use usage, which now includes token usage across all steps.

    7.0.0upgrade guide

  • The streamText result method is deprecated; use the stateless top-level helper with a stream.

    7.0.0upgrade guide

  • The streamText result method is deprecated; use stateless top-level helpers to transform and respond to streams.

    7.0.0upgrade guide

New APIs and options 5

  • Declare tool-specific context fields with contextSchema; tool callback context types are inferred from that schema.

    7.0.0upgrade guide

  • Models can return files in reasoning traces as a distinct content type; update exhaustive part handling to support it.

    7.0.0upgrade guide

  • The top-level reasoning option is the provider-agnostic way to control reasoning effort; remove overlapping reasoning settings from providerOptions when migrating.

    7.0.0upgrade guide

  • Register a telemetry integration globally at application startup to receive OpenTelemetry traces.

    7.0.0upgrade guide

  • The Vue composable exposes reactive refs and automatically recreates the underlying chat when its init object changes.

    7.0.0upgrade guide

Behavior and default changes 9

  • Speech generation has graduated from experimental status and is now named generateSpeech; the former name remains as a deprecated alias.

    7.0.0upgrade guide

  • Renames experimental_include to include for generateText, streamText, and ToolLoopAgent; the old name remains a deprecated alias and include takes precedence.

    7.0.0upgrade guide

  • The file variant accepts a full IANA type or a top-level segment; a subtype is auto-detected from inline bytes where possible.

    7.0.0upgrade guide

  • Instructions returned from prepareStep persist into future steps until prepareStep returns another instructions or system override.

    7.0.0upgrade guide

  • Experimental_SpeechResult is renamed to SpeechResult; the old name remains as a deprecated alias.

    7.0.0upgrade guide

  • After a telemetry integration is registered, calls emit telemetry events by default; set isEnabled to false to opt out per call.

    7.0.0upgrade guide

  • Renames experimental_telemetry to telemetry. The old name remains a deprecated alias during the migration window.

    7.0.0upgrade guide

  • The transcription API has graduated from experimental status and is now named transcribe; the former name remains as a deprecated alias.

    7.0.0upgrade guide

  • Experimental_TranscriptionResult is renamed to TranscriptionResult; the old name remains as a deprecated alias.

    7.0.0upgrade guide

@ai-sdk/amazon-bedrock 5169 changes

Breaking changes 94

  • The thinking block binding field was renamed for Bedrock.

    5.0.83release notes

  • LangChainAdapter moved to this package, whose API uses UI message streams.

    5.0.0upgrade guide

  • LlamaIndexAdapter moved to this package and follows the UI message stream pattern.

    5.0.0upgrade guide

  • The deprecated ai/react export has been removed in favor of @ai-sdk/react.

    5.0.0upgrade guide

  • The ai/rsc export has been extracted to the separate @ai-sdk/rsc package.

    5.0.0upgrade guide

  • The package has been removed and its exports moved to the main ai package.

    5.0.0upgrade guide

  • append has been replaced with sendMessage for sending messages through useChat.

    5.0.0upgrade guide

  • The useChat configuration body is captured at first render and stays static; pass changing values at request time or use function configuration.

    5.0.0upgrade guide

  • The Vue integration replaces the useChat composable with a Chat class.

    5.0.0upgrade guide

  • The Svelte constructor now takes a function returning configuration, with transport configured through that return value.

    5.0.0upgrade guide

  • The allowEmptySubmit option has been removed from chat request options.

    5.0.0upgrade guide

  • The data option has been removed; move its contents to body.

    5.0.0upgrade guide

  • RequestOptions has been renamed to CompletionRequestOptions; update type imports.

    5.0.0upgrade guide

  • convertToCoreMessages has been renamed to convertToModelMessages.

    5.0.0upgrade guide

  • Requires size to be supplied when creating the generator; the generated ID uses that fixed size when the generator is called.

    5.0.0upgrade guide

  • CreateMessage has been renamed to CreateUIMessage.

    5.0.0upgrade guide

  • The data stream protocol is replaced by UI message streams, which write typed message parts through the stream writer.

    5.0.0upgrade guide

  • The data property has been removed from the useCompletion hook.

    5.0.0upgrade guide

  • The data role has been removed from UI messages; use UI message streams with custom data parts instead.

    5.0.0upgrade guide

  • Text delta chunks now use the delta property instead of textDelta.

    5.0.0upgrade guide

  • Check the dynamic flag before narrowing toolCalls or toolResults; dynamic tool inputs are typed as unknown.

    5.0.0upgrade guide

  • UI messages now include a dynamic-tool part type for rendering dynamic tool invocations.

    5.0.0upgrade guide

  • The property has been replaced by file parts in the message parts array.

    5.0.0upgrade guide

  • The experimental_continueSteps option has been removed from generateText().

    5.0.0upgrade guide

  • File stream parts are flattened: read mediaType and data directly from the chunk instead of from chunk.file.

    5.0.0upgrade guide

  • File parts now use url instead of data and mimeType.

    5.0.0upgrade guide

  • The step completion stream event is renamed from step-finish; update stream event handlers.

    5.0.0upgrade guide

  • The finish event exposes totalUsage instead of usage.

    5.0.0upgrade guide

  • The option moves from streamText configuration to toUIMessageStreamResponse and no longer uses the experimental prefix.

    5.0.0upgrade guide

  • The type name is updated from IDGenerator to IdGenerator.

    5.0.0upgrade guide

  • The Svelte integration no longer manages input; applications must manage input state and send messages themselves.

    5.0.0upgrade guide

  • The deprecated helper has been removed in favor of status.

    5.0.0upgrade guide

  • Replaces DataStreamToSSETransformStream as the renamed stream transform function.

    5.0.0upgrade guide

  • The option has been removed because it is no longer needed.

    5.0.0upgrade guide

  • Import LanguageModelV3 from @ai-sdk/provider instead of ai.

    5.0.0upgrade guide

  • Replaces LanguageModelV1Middleware and is imported from @ai-sdk/provider.

    5.0.0upgrade guide

  • Image model settings have moved out of model settings; maxImagesPerCall is now passed to generateImage().

    5.0.0upgrade guide

  • The generateText and streamText parameter maxTokens has been renamed to maxOutputTokens.

    5.0.0upgrade guide

  • Core functions such as generateText and streamText replace maxSteps with stopWhen for multi-step execution control.

    5.0.0upgrade guide

  • The parameter has been removed from Chat and useChat; use server-side stopWhen conditions for multi-step tool execution.

    5.0.0upgrade guide

  • Use mediaType instead of mimeType for image and file types in model messages.

    5.0.0upgrade guide

  • Usage data is attached as metadata to individual messages using messageMetadata in toUIMessageStreamResponse.

    5.0.0upgrade guide

  • Svelte chat properties are readonly; update messages using setter methods such as setMessages.

    5.0.0upgrade guide

  • CoreMessage has been renamed to ModelMessage.

    5.0.0upgrade guide

  • The callback now receives new streaming chunk types with IDs and the start/delta/end pattern; update handlers to use the revised chunk properties and types.

    5.0.0upgrade guide

  • Replaces getErrorMessage in toUIMessageStreamResponse and controls what error information is forwarded; by default, error messages are not sent to the client.

    5.0.0upgrade guide

  • The callback has been removed from useChat and useCompletion.

    5.0.0upgrade guide

  • Returning values from onToolCall no longer automatically submits tool results; call addToolOutput explicitly.

    5.0.0upgrade guide

  • Vue messages now expose a parts array instead of a content string.

    5.0.0upgrade guide

  • Replaces pipeDataStreamToResponse for piping a stream to a server response.

    5.0.0upgrade guide

  • This transport configuration option replaces experimental_prepareRequestBody for preparing chat request bodies.

    5.0.0upgrade guide

  • The function was removed; use readUIMessageStream or the Chat/useChat APIs to process UI message streams.

    5.0.0upgrade guide

  • The input parameter providerMetadata has been renamed to providerOptions; returned result metadata remains named providerMetadata.

    5.0.0upgrade guide

  • Pass pollIntervalMillis under providerOptions instead of in the image model settings.

    5.0.0upgrade guide

  • Embedding model settings now belong in providerOptions instead of model parameters.

    5.0.0upgrade guide

  • The reasoning property on reasoning UI parts has been renamed to text.

    5.0.0upgrade guide

  • In generateText() and streamText() results, reasoning now contains an array of reasoning details rather than reasoning text.

    5.0.0upgrade guide

  • Reasoning content now supports start, delta, and end chunks with IDs, in addition to a single reasoning chunk containing the full text.

    5.0.0upgrade guide

  • Amazon Bedrock provider options now use camelCase, so replace reasoning_config with reasoningConfig.

    5.0.0upgrade guide

  • Use reasoningText for reasoning text in multi-step generations and generateText() or streamText() results.

    5.0.0upgrade guide

  • regenerate replaces reload and can regenerate either the last message or a specific message by ID.

    5.0.0upgrade guide

  • reload has been renamed to regenerate.

    5.0.0upgrade guide

  • The embed result property rawResponse has been renamed to response.

    5.0.0upgrade guide

  • Provider response objects use response instead of rawResponse.

    5.0.0upgrade guide

  • Resume functionality is now configured with resumeStream instead of experimental_resume.

    5.0.0upgrade guide

  • The option has been removed because sending extra message fields is now the default behavior.

    5.0.0upgrade guide

  • sendMessage replaces append and accepts structured message formats.

    5.0.0upgrade guide

  • Source stream parts are flattened: read sourceType, id, title, and url directly from the part instead of from part.source.

    5.0.0upgrade guide

  • The stepType property has been removed from step results; determine step roles from index and toolResults instead.

    5.0.0upgrade guide

  • StreamData has been removed; use UI message streams for custom data.

    5.0.0upgrade guide

  • Temperature is no longer set to 0 by default; set it explicitly to retain that value.

    5.0.0upgrade guide

  • Streaming now uses a start/delta/end pattern with unique IDs for each content block.

    5.0.0upgrade guide

  • experimental_toToolResultContent has been renamed to toModelOutput and is no longer experimental.

    5.0.0upgrade guide

  • Tool call args has been renamed to input.

    5.0.0upgrade guide

  • Tool call streaming is always enabled by default.

    5.0.0upgrade guide

  • Tool definitions use inputSchema instead of parameters.

    5.0.0upgrade guide

  • Tool result result has been renamed to output.

    5.0.0upgrade guide

  • Tool UI parts use input-streaming, input-available, output-available, and output-error states instead of the previous lifecycle states.

    5.0.0upgrade guide

  • The option has been removed because tool call streaming is always enabled by default.

    5.0.0upgrade guide

  • ToolExecutionError has been removed; tool execution errors appear as tool-error content parts in result steps and streams.

    5.0.0upgrade guide

  • Use totalUsage for token usage across all steps; usage now reports only the final step.

    5.0.0upgrade guide

  • Replaces toDataStreamResponse with the UI message stream response helper.

    5.0.0upgrade guide

  • Message has been renamed to UIMessage.

    5.0.0upgrade guide

  • The UI message reasoning property has moved into parts as a reasoning part.

    5.0.0upgrade guide

  • UI tool parts use typed names in the form tool-${toolName} instead of generic tool-invocation types.

    5.0.0upgrade guide

  • Token usage properties are renamed from promptTokens and completionTokens to inputTokens and outputTokens; totalTokens is now required.

    5.0.0upgrade guide

  • The hook has been removed; use useChat configured for the route instead.

    5.0.0upgrade guide

  • Share chat state by passing the same Chat instance to useChat hooks instead of reusing an id.

    5.0.0upgrade guide

  • useChat no longer manages input state internally; applications must manage input state manually.

    5.0.0upgrade guide

  • useChat no longer accepts maxSteps; use server-side stopWhen or configure client-side tool-result submission.

    5.0.0upgrade guide

  • The initialMessages option has been renamed to messages.

    5.0.0upgrade guide

  • Configure chat requests through transport objects instead of direct API options.

    5.0.0upgrade guide

  • DataStreamWriter.writeData has been removed; use custom data parts with UI message streams.

    5.0.0upgrade guide

  • DataStreamWriter.writeMessageAnnotation has been removed; use custom data parts with UI message streams.

    5.0.0upgrade guide

Security 1

  • Sanitizes document filenames before sending them to Bedrock.

    5.0.75release notes

Deprecations 1

  • Use addToolOutput instead of addToolResult, passing output and a tool name; addToolResult remains available but is deprecated.

    5.0.0upgrade guide

New APIs and options 25

  • Adds Claude Haiku 5.5 support on Amazon Bedrock, with a 128k max output token limit, adaptive thinking, and all five effort levels.

    5.0.109release notes

  • Adds the US-prefixed Claude Haiku 5.5 model ID for Amazon Bedrock.

    3.0.139, 5.0.109release notesrelease notes

  • Portable reasoning now supports max, with native provider mappings, compatibility coercions, and budget-based fallback support.

    5.0.107release notes

  • Adds per-request metadata to the Converse and ConverseStream APIs for tagging Amazon Bedrock invocation logs for cost attribution.

    5.0.105release notes

  • Adds the 20260318 web search and web fetch tools with response inclusion controls.

    5.0.85release notes

  • Claude Fable 5.1 model IDs were added to the Bedrock provider.

    5.0.84release notes

  • Adds a provider option to choose between native structured output and the JSON tool fallback for Anthropic models.

    5.0.71release notes

  • Anthropic reasoning budgets are enabled for application inference profile ARNs.

    4.0.166, 5.0.68release notesrelease notes

  • A model family setting is available for embeddings to support ARN models.

    4.0.166, 5.0.67release notesrelease notes

  • Adds a Bedrock Mantle provider.

    5.0.0release notes

  • Adds support for the claude-opus-4-8 model.

    5.0.0release notes

  • Defines tools whose input and output types are not known at compile time, supporting tools defined at runtime.

    5.0.0upgrade guide

  • Use getToolName as a fallback helper when rendering all tool invocations with a catch-all pattern.

    5.0.0upgrade guide

  • Use isToolUIPart as a fallback for catch-all rendering of tool invocations.

    5.0.0upgrade guide

  • embedMany now makes parallel requests and lets you configure their maximum number with maxParallelCalls.

    5.0.0upgrade guide

  • Supports native structured output for Anthropic models without reasoning.

    5.0.0release notes

  • Adds support for provider references and uploading files as supported per provider.

    5.0.0release notes

  • Adds a top-level reasoning parameter supported by generateText and streamText.

    5.0.0release notes

  • Use this option with lastAssistantMessageIsCompleteWithToolCalls for automatic tool result submission.

    5.0.0upgrade guide

  • Adds support for a service tier for model inference.

    5.0.0release notes

  • Use stopWhen with step-count, tool-call, array, or custom conditions to control multi-step execution; conditions are evaluated only when the last step contains tool results.

    5.0.0upgrade guide

  • The streaming protocol adds text-end chunks to finalize text blocks.

    5.0.0upgrade guide

  • Streams tool input JSON as it is generated.

    5.0.0upgrade guide

  • Signals that a streamed tool input is complete.

    5.0.0upgrade guide

  • Streams the beginning of generated tool input, including the tool name and ID.

    5.0.0upgrade guide

Performance 1

  • Update the peer dependency to Zod 4.1.8 or later; the notes recommend this to avoid TypeScript performance issues.

    5.0.0upgrade guide

Behavior and default changes 11

  • Bedrock uses native structured output and strict tools only for known supported Claude models; future Claude model IDs omit unsupported fields and use JSON instructions for structured output by default.

    5.0.114release notes

  • Top-level embedding dimensions are now mapped to provider settings.

    5.0.113release notes

  • Capability declarations now use confirmed model IDs, advertise file and mask support where applicable, and allow asynchronous lookups and middleware overrides to resolve to unknown.

    5.0.98release notes

  • Structured output defaults to the JSON tool fallback for Claude Sonnet 4.6 and Claude Haiku 4.5, while strict tool support is preserved.

    5.0.71release notes

  • Amazon Bedrock streaming responses now accept citation deltas.

    3.0.126, 4.0.166, 5.0.67release notesrelease notesrelease notes

  • The option is no longer experimental; use activeTools instead of experimental_activeTools.

    5.0.0upgrade guide

  • The stream part type adds lifecycle events, IDs, start/delta/end patterns for text and reasoning, and streamed tool input.

    5.0.0upgrade guide

  • MCP tools that do not provide schemas are automatically treated as dynamic tools.

    5.0.0upgrade guide

  • The option is promoted from experimental_prepareStep to prepareStep and can configure the model, active tools, tool choice, and system message for a step.

    5.0.0upgrade guide

  • Message persistence is handled through the UI message stream response method, whose onFinish callback receives messages and responseMessage in UIMessage format.

    5.0.0upgrade guide

  • The stable export replaces experimental_wrapLanguageModel.

    5.0.0upgrade guide

Tooling 1

  • If TypeScript performance issues persist after upgrading, set moduleResolution to nodenext.

    5.0.0upgrade guide

Fixes and other changes 35

  • SigV4 signing is skipped for non-ASCII header values.

    3.0.140, 4.0.193, 5.0.110release notesrelease notesrelease notes

  • Structured output for Claude Haiku 5.5 on Amazon Bedrock uses the JSON tool fallback.

    4.0.192, 5.0.109release notesrelease notes

  • Partial configurations continue to preserve explicit values and derive missing fields; explicit effort or budget overrides and disabled thinking no longer emit warnings for portable mappings that are not sent.

    5.0.107release notes

  • Nova 2 calls using portable xhigh now send maxReasoningEffort: 'high' instead of the unsupported 'max', and return a compatibility warning.

    5.0.107release notes

  • Hostname parts are validated using isValidHostnamePart.

    5.0.103release notes

  • The User-Agent header now follows standards, improving compatibility with systems that inspect it.

    5.0.100release notes

  • The provider omits max output tokens for Nova 2 Lite high reasoning.

    5.0.98release notes

  • Unsupported OpenAI sampling settings are omitted from Converse requests.

    5.0.93release notes

  • Supported Mantle models are routed through the OpenAI endpoint.

    5.0.93release notes

  • Unsupported sampling parameters are omitted for newer Claude models.

    5.0.93release notes

  • Avoids forcing structured-output tools for incompatible Claude models.

    3.0.134, 4.0.181, 5.0.92release notesrelease notesrelease notes

  • API error messages are preserved when the error type is omitted.

    3.0.132, 4.0.178, 5.0.87release notesrelease notesrelease notes

  • Open tool schemas no longer use strict mode.

    5.0.87release notes

  • Anthropic features are enabled for application inference profile chat models.

    3.0.132, 4.0.177, 5.0.85release notesrelease notesrelease notes

  • Bedrock endpoints now support non-standard AWS regions and service-specific overrides.

    4.0.176, 5.0.82release notesrelease notes

  • Returns text from citation content responses.

    5.0.75release notes

  • Preserves provider-executed tool results when replaying messages.

    5.0.75release notes

  • Assistant messages are omitted when filtering unsigned reasoning leaves only cache points.

    3.0.126, 4.0.166, 5.0.67release notesrelease notesrelease notes

  • Amazon Bedrock now forwards the Anthropic option for disabling parallel tool use without sending conflicting tool choice fields.

    3.0.124, 4.0.165, 5.0.65release notesrelease notesrelease notes

  • Modeled event-stream exceptions are now surfaced by the Amazon Bedrock provider.

    3.0.119, 4.0.159, 5.0.60release notesrelease notesrelease notes

  • Handles empty string tool call IDs.

    5.0.59release notes

  • Supports reasoningContent.redactedContent from the Converse API and replays it on subsequent turns.

    3.0.118, 4.0.158, 5.0.59release notesrelease notesrelease notes

  • AWS_SESSION_TOKEN is no longer used when keys are explicitly defined.

    5.0.0release notes

  • Preserves cache points on message content parts.

    5.0.0release notes

  • Detects Cohere embedding models behind cross-region inference profile IDs.

    5.0.0release notes

  • Extracts Cohere embedding token usage from the response header.

    5.0.0release notes

  • Adds support for document files in tool results.

    5.0.0release notes

  • Transforms Bedrock Anthropic error responses to Anthropic format.

    5.0.0release notes

  • createAmazonBedrock() no longer captures fetch at initialization, so fetch patches applied after provider creation are respected.

    5.0.0release notes

  • Disables native structured output for claude-opus-4-7.

    5.0.0release notes

  • Preserves reasoning text when a signature is present.

    5.0.0release notes

  • Fixes Anthropic reasoning behavior related to Opus 4.7.

    5.0.0release notes

  • Custom reasoning configuration properties are merged when the top-level reasoning parameter is set.

    5.0.0release notes

  • Tool specs omit strict for Claude Opus 4.7 and 4.8 on Bedrock because the Messages API rejects that field.

    5.0.0release notes

  • Adds the tool search beta for Anthropic.

    5.0.0release notes

@ai-sdk/amazon-bedrock 423 changes

Breaking changes 4

  • Amazon Bedrock event stream frame decoding and processing failures are surfaced instead of silently completing the stream.

    4.0.157release notes

  • Amazon Bedrock event streams ending with an incomplete buffered frame are rejected instead of completing normally with partial output.

    4.0.157release notes

  • The baseUrl option has been removed from all providers; use baseURL instead.

    4.0.0upgrade guide

  • The embedding model API is now embeddingModel('my-model-id') instead of textEmbeddingModel('my-model-id').

    4.0.0release notes

Deprecations 1

  • textEmbeddingModel is retained as a deprecated alias; use embeddingModel instead.

    4.0.0release notes

New APIs and options 8

  • Adds a structured output mode option.

    3.0.127, 4.0.168release notesrelease notes

  • The Amazon Bedrock provider now supports citations.

    4.0.0release notes

  • The Amazon Bedrock provider adds support for the Claude Sonnet 4.5 model.

    4.0.0release notes

  • Bedrock supports the maxReasoningEffort field for Nova 2 extended reasoning.

    4.0.0release notes

  • Bedrock responses now expose the stop sequence that halted generation as providerMetadata.bedrock.stopSequence; it is null when no stop sequence matched.

    4.0.0release notes

  • The provider adds support for reranking models.

    4.0.0release notes

  • Bedrock now supports combining tool calls with structured JSON output schemas, enabling workflows with tools and structured final outputs.

    4.0.0release notes

  • The Amazon Bedrock provider now supports user-provided filenames.

    4.0.0release notes

Behavior and default changes 2

  • Native structured output is used for known supported Claude models; future Claude model IDs use JSON instructions for structured output by default.

    4.0.195release notes

  • Claude Sonnet 4.6 and Claude Haiku 4.5 default to the JSON tool fallback while preserving strict tool support.

    4.0.168release notes

Fixes and other changes 8

  • Strict-tool fields are omitted for future Claude model IDs that do not support them.

    4.0.195release notes

  • Generated text is now returned from citation content blocks.

    4.0.171release notes

  • Amazon Bedrock now handles channel-qualified JSON response tool names.

    4.0.169release notes

  • Raw usage metadata now preserves complete Amazon Bedrock Converse usage objects.

    4.0.163release notes

  • The Bedrock provider now handles empty tool descriptions gracefully.

    4.0.0release notes

  • Reasoning with Bedrock now works when additionalModelRequestFields is used.

    4.0.0release notes

  • Streaming tool calls without arguments now send {} as their tool input.

    4.0.0release notes

  • Bedrock temperature values are clamped to the valid 0–1 range, with warnings.

    4.0.0release notes

@ai-sdk/amazon-bedrock 39 changes

Breaking changes 1

  • For claude-sonnet-5-5, disabled thinking is replaced with between_tools thinking, and budget-based thinking is converted to adaptive thinking; disabled thinking emits a warning.

    3.0.137release notes

New APIs and options 2

  • Adds Claude Haiku 5.5 as a supported Amazon Bedrock model.

    3.0.139release notes

  • Adds the between_tools thinking type, the lowest thinking setting for claude-sonnet-5-5.

    3.0.137release notes

Behavior and default changes 3

  • For claude-sonnet-5-5, jsonTool falls back to native structured outputs with a warning.

    3.0.137release notes

  • For claude-sonnet-5-5, required and named tool choices fall back to auto with a warning because the model rejects forced tool use.

    3.0.137release notes

  • Claude Sonnet 4.6 and Claude Haiku 4.5 now default to the JSON tool fallback.

    3.0.127release notes

Fixes and other changes 3

  • For claude-sonnet-5-5, xhigh and max effort are lowered to high with a warning because the API rejects them with between_tools.

    3.0.137release notes

  • Resolves endpoints for non-standard AWS partitions and endpoint overrides.

    3.0.131release notes

  • Non-streaming citation responses now return text.

    3.0.129release notes