import { APIError } from "https://deno.land/x/openai@v4.20.0/error.ts";
Module
x/openai/error.ts>APIError.makeMessage
Deno build of the official Typescript library for the OpenAI API. Source: https://github.com/openai/openai-node
Extremely Popular
libresourcesshimsdefaultOpenAIClientOptionsAPIConnectionErrorAPIConnectionTimeoutErrorAPIErrorAPIUserAbortErrorAuthenticationErrorBadRequestErrorConflictErrorInternalServerErrorNotFoundErrorOpenAIErrorPermissionDeniedErrorRateLimitErrorUnprocessableEntityErrorAbstractPageAPIClientAPIPromisePagePromiseHeadersProtocolDefaultQueryFetchFinalRequestOptionsHeadersHeadersLikeKeysEnumPageInfoRequestClientRequestOptionsResponseUploadablecastToErrorcoerceBooleancoerceFloatcoerceIntegercreateFormcreateResponseHeadersensurePresentgetRequiredHeaderisHeadersProtocolisRequestOptionsisRunningInBrowsermaybeCoerceBooleanmaybeCoerceFloatmaybeCoerceIntegermaybeMultipartFormRequestOptionsmultipartFormRequestOptionsreadEnvsafeJSONsleeptoBase64debughasOwnisEmptyObjAPIConnectionErrorAPIConnectionTimeoutErrorAPIErrorAPIUserAbortErrorAuthenticationErrorBadRequestErrorConflictErrorInternalServerErrorNotFoundErrorOpenAIErrorPermissionDeniedErrorRateLimitErrorUnprocessableEntityError
mod.ts (default module)
N
N
c
I
v
v
v
v
v
v
v
v
v
v
v
v
v
core.ts
c
c
c
c
I
T
T
T
T
T
T
T
T
T
T
T
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
f
f
f
error.ts
c
c
c
c
c
c
c
c
c
c
c
c
c