Skip to content

rulvar API reference


rulvar API reference / @rulvar/openai / openAiErrorToWire

Function: openAiErrorToWire()

ts
function openAiErrorToWire(error): WireError;

Defined in: packages/openai/src/wire.ts:411

Projects SDK/API errors into the retryable WireError vocabulary.

Parameters

ParameterType
errorunknown

Returns

WireError