Skip to Content

gatewayErrorOf()

function gatewayErrorOf(error): object;

Serialize a public error in the gateway’s OpenAI-compatible shape.

Parameters

error

PublicApiError

Last updated on