Skip to content

AmazonBedrockAnthropicFetch

Namespace: Vercel.AI.AmazonBedrock

public static class AmazonBedrockAnthropicFetch

Wraps a handler so the Anthropic Messages model can read Bedrock responses. Failed responses become Anthropic error bodies, and application/vnd.amazon.eventstream bodies become server-sent events. Maps to createAmazonBedrockAnthropicFetch.

Inheritance: object

View source

public static DelegatingHandler Create(HttpMessageHandler baseHandler)

Wraps <code class=“paramref”>baseHandler</code>. Disposing the result disposes <code class=“paramref”>baseHandler</code>.

Parameters

Name Type Description
baseHandler HttpMessageHandler

Returns: DelegatingHandler

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product