Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/core.ts>RequestOptions

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
type alias RequestOptions
import { type RequestOptions } from "https://deno.land/x/openai@v4.53.2/core.ts";

Type Parameters

optional
Req =
| unknown
| Record<string, unknown>
| ArrayBufferView
| ArrayBuffer
definition: { method?: HTTPMethod; path?: string; query?: Req | undefined; body?: Req | null | undefined; headers?: Headers | undefined; maxRetries?: number; stream?: boolean | undefined; timeout?: number; httpAgent?: Agent; signal?: AbortSignal | undefined | null; idempotencyKey?: string; __binaryRequest?: boolean | undefined; __binaryResponse?: boolean | undefined; __streamClass?: Stream; }