Skip to main content
Module

x/openai/core.ts>AbstractPage

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
class AbstractPage
implements AsyncIterable<Item>
Abstract
import { AbstractPage } from "https://deno.land/x/openai@v4.24.5/core.ts";

Constructors

new
AbstractPage(
client: APIClient,
response: Response,
body: unknown,
)

Properties

protected
body: unknown
protected
options: FinalRequestOptions
protected
response: Response

Methods

getNextPage(): Promise<this>
abstract
getPaginatedItems(): Item[]
hasNextPage(): boolean
abstract
nextPageInfo(): PageInfo | null
abstract
deprecated
nextPageParams(): Partial<Record<string, unknown>> | null