Skip to main content

Overview

Presets endpoints

Available Operations

list

Lists all presets for the authenticated user, ordered by most recently updated first.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<operations.ListPresetsResponse>

Errors

get

Retrieves a preset by its slug with its currently designated version inline.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.GetPresetResponse>

Errors

createPresetsChatCompletions

Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. messages, stream, prompt) are silently ignored.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.CreatePresetFromInferenceResponse>

Errors

createPresetsMessages

Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. messages, stream, prompt) are silently ignored.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.CreatePresetFromInferenceResponse>

Errors

createPresetsResponses

Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. messages, stream, prompt) are silently ignored.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.CreatePresetFromInferenceResponse>

Errors

listVersions

Lists all versions of a preset, ordered by version number ascending (oldest first).

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<operations.ListPresetVersionsResponse>

Errors

getVersion

Retrieves a specific version of a preset by its slug and version number.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.GetPresetVersionResponse>

Errors