ListOrder

Represents the order for a list, sorted by time created. In general, since you probably want the most recent objects from the OpenAI API, you should use DESCENDING (which is the default value for all requests).

Entries

Link copied to clipboard

Ascending order. Objects created a long time ago are ordered before objects created more recently.

Link copied to clipboard

Descending order. Objects created more recently are ordered before objects created a long time ago. This is the default value for list requests.

Functions

Link copied to clipboard
fun valueOf(value: String): ListOrder

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard

How each enum is represented as raw json string.

Link copied to clipboard
Link copied to clipboard