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:596

Projects SDK/API errors into the retryable WireError vocabulary.

Parameters

ParameterType
errorunknown

Returns

WireError