AbstractListRequestBuilder

An abstract builder type for list requests. Many objects stored by the OpenAI API are stored in lists. This abstract request stores the data that each request has in common.

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with "obj_foo", your subsequent call can include after="obj_foo" in order to fetch the next page of the list.

Link copied to clipboard
Link copied to clipboard

A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with "obj_foo", your subsequent call can include before="obj_foo" in order to fetch the previous page of the list.

Link copied to clipboard
abstract fun build(): T
Link copied to clipboard
Link copied to clipboard

The maximum number of results to return. This value must be between 1 and 100 (inclusive).

Link copied to clipboard

How the returned list should be ordered. If not specified, the default value is ListOrder.DESCENDING. Use the ascending and descending methods.