Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.61.1/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