import { OpenAI } from "https://deno.land/x/openai@v4.20.0/mod.ts";
Module
x/openai/mod.ts>OpenAI#defaultQuery
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