StreamErrors
Namespace: Vercel.AI.Prompt
public static class StreamErrorsNormalizes provider stream failures. Maps to normalizeStreamProviderError.
Inheritance: object
Methods
Section titled “Methods”NormalizeStreamProviderError(object?)
Section titled “NormalizeStreamProviderError(object?)”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
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product