Skip to content

@ralphschuler.ai function caller.index.<internal>.OpenAI.Models.ModelsPage

github-actions edited this page Nov 26, 2023 · 1 revision

Class: ModelsPage

OpenAI.Models.ModelsPage

Note: no pagination actually occurs yet, this is for forwards-compatibility.

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ModelsPage(client, response, body, options): ModelsPage

Parameters

Name Type
client APIClient
response Response
body PageResponse<Model>
options FinalRequestOptions

Returns

ModelsPage

Inherited from

Page.constructor

Defined in

node_modules/openai/pagination.d.ts:12

Properties

#private

Private #private: any

Inherited from

Page.#private

Defined in

node_modules/openai/core.d.ts:135


body

Protected body: unknown

Inherited from

Page.body

Defined in

node_modules/openai/core.d.ts:138


data

data: Model[]

Inherited from

Page.data

Defined in

node_modules/openai/pagination.d.ts:10


object

object: "list"

Inherited from

Page.object

Defined in

node_modules/openai/pagination.d.ts:11


options

Protected options: FinalRequestOptions<Readable | Record<string, unknown>>

Inherited from

Page.options

Defined in

node_modules/openai/core.d.ts:136


response

Protected response: Response

Inherited from

Page.response

Defined in

node_modules/openai/core.d.ts:137

Methods

[asyncIterator]

[asyncIterator](): AsyncGenerator<Model, void, unknown>

Returns

AsyncGenerator<Model, void, unknown>

Inherited from

Page.[asyncIterator]

Defined in

node_modules/openai/core.d.ts:149


getNextPage

getNextPage(): Promise<ModelsPage>

Returns

Promise<ModelsPage>

Inherited from

Page.getNextPage

Defined in

node_modules/openai/core.d.ts:147


getPaginatedItems

getPaginatedItems(): Model[]

Returns

Model[]

Inherited from

Page.getPaginatedItems

Defined in

node_modules/openai/pagination.d.ts:13


hasNextPage

hasNextPage(): boolean

Returns

boolean

Inherited from

Page.hasNextPage

Defined in

node_modules/openai/core.d.ts:146


iterPages

iterPages(): AsyncGenerator<AbstractPage<Model>, void, unknown>

Returns

AsyncGenerator<AbstractPage<Model>, void, unknown>

Inherited from

Page.iterPages

Defined in

node_modules/openai/core.d.ts:148


nextPageInfo

nextPageInfo(): null

Returns

null

Inherited from

Page.nextPageInfo

Defined in

node_modules/openai/pagination.d.ts:19


nextPageParams

nextPageParams(): null

This page represents a response that isn't actually paginated at the API level so there will never be any next page params.

Returns

null

Inherited from

Page.nextPageParams

Defined in

node_modules/openai/pagination.d.ts:18

Typescript Libraries

Modules

Namespaces

Clone this wiki locally