Skip to content

apollo-code


apollo-code / provider-openai/src / mapOpenAIError

Function: mapOpenAIError()

mapOpenAIError(status, body?, retryAfterMs?): ProviderError

Parameters

status

number

body?

error?

{ code?: string; message?: string; type?: string; }

error.code?

string

error.message?

string

error.type?

string

retryAfterMs?

number

Returns

ProviderError