Skip to content

StreamErrors

Namespace: Vercel.AI.Prompt

public static class StreamErrors

Normalizes provider stream failures. Maps to normalizeStreamProviderError.

Inheritance: object

View source

public static object? NormalizeStreamProviderError(object? error)

Turns a provider payload into StreamProviderError. Existing exceptions, preserved errors, and values without a string message are returned unchanged.

Parameters

Name Type Description
error object

Returns: object

View source

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