import { ensurePresent } from "https://deno.land/x/openai@v4.69.0/core.ts";
Module
x/openai/core.ts>ensurePresent
Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Latest
helpersinternallibresourcesshimsdefaultOpenAIAzureOpenAIAzureClientOptionsClientOptionsAPIConnectionErrorAPIConnectionTimeoutErrorAPIErrorAPIUserAbortErrorAuthenticationErrorBadRequestErrorConflictErrorInternalServerErrorNotFoundErrorOpenAIErrorPermissionDeniedErrorRateLimitErrorUnprocessableEntityErrorAbstractPageAPIClientAPIPromisePagePromiseHeadersProtocolDefaultQueryFetchFinalRequestOptionsHeadersHeadersLikeKeysEnumPageInfoRequestClientRequestOptionsResponseUploadablecastToErrorcoerceBooleancoerceFloatcoerceIntegercreateFormcreateResponseHeadersensurePresentgetHeadergetRequiredHeaderisHeadersProtocolisRequestOptionsisRunningInBrowsermaybeCoerceBooleanmaybeCoerceFloatmaybeCoerceIntegermaybeMultipartFormRequestOptionsmultipartFormRequestOptionsreadEnvsafeJSONsleeptoBase64debughasOwnisEmptyObjisObjAPIConnectionErrorAPIConnectionTimeoutErrorAPIErrorAPIUserAbortErrorAuthenticationErrorBadRequestErrorConflictErrorContentFilterFinishReasonErrorInternalServerErrorLengthFinishReasonErrorNotFoundErrorOpenAIErrorPermissionDeniedErrorRateLimitErrorUnprocessableEntityError
mod.ts (default module)
N
N
c
c
I
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
v
f
f
f
f
error.ts
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c