Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Overview

Presets endpoints

Available Operations

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