Presets - Go SDK
Presets - Go SDK
The Go SDK and docs are currently in beta. Report issues on GitHub.
Overview
Presets endpoints
Available Operations
- List - List presets
- Get - Get a preset
- CreatePresetsChatCompletions - Create a preset from a chat-completions request body
- CreatePresetsMessages - Create a preset from a messages request body
- CreatePresetsResponses - Create a preset from a responses request body
- ListVersions - List versions of a preset
- GetVersion - Get a specific version of a preset
List
Lists all presets for the authenticated user, ordered by most recently updated first.
Example Usage
Parameters
Response
*operations.ListPresetsResponse, error
Errors
Get
Retrieves a preset by its slug with its currently designated version inline.
Example Usage
Parameters
Response
*components.GetPresetResponse, error
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
Parameters
Response
*components.CreatePresetFromInferenceResponse, error
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
Parameters
Response
*components.CreatePresetFromInferenceResponse, error
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
Parameters
Response
*components.CreatePresetFromInferenceResponse, error
Errors
ListVersions
Lists all versions of a preset, ordered by version number ascending (oldest first).
Example Usage
Parameters
Response
*operations.ListPresetVersionsResponse, error
Errors
GetVersion
Retrieves a specific version of a preset by its slug and version number.
Example Usage
Parameters
Response
*components.GetPresetVersionResponse, error