Skip to content

AnthropicStreamError

Namespace: Vercel.AI.Anthropic

public static class AnthropicStreamError

HTTP status implied by an Anthropic stream error type.

Inheritance: object

View source

public static bool IsRetryable(string? type)

True for api, overloaded, and rate-limit errors.

Parameters

Name Type Description
type string

Returns: bool

View source

public static int? StatusCode(string? type)

Maps an error type onto a status code. Unknown types have no status.

Parameters

Name Type Description
type string

Returns: int?

View source

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