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
Latest
class AbstractPage
implements AsyncIterable<Item>
Abstract
import { AbstractPage } from "https://deno.land/x/openai@v4.69.0/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