/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as OctoAI from "../../../index"; export declare namespace FineTuning { interface Options { environment?: core.Supplier; apiKey?: core.Supplier; fetcher?: core.FetchFunction; } interface RequestOptions { timeoutInSeconds?: number; maxRetries?: number; abortSignal?: AbortSignal; } } export declare class FineTuning { protected readonly _options: FineTuning.Options; constructor(_options?: FineTuning.Options); /** * Spawn a tune. * * @param {OctoAI.fineTuning.CreateTuneRequest} request * @param {FineTuning.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link OctoAI.fineTuning.UnprocessableEntityError} * * @example * await client.fineTuning.create({ * details: { * tuneType: "text_to_speech_latent_tune", * assetIds: ["details"] * }, * name: "name" * }) */ create(request: OctoAI.fineTuning.CreateTuneRequest, requestOptions?: FineTuning.RequestOptions): Promise; /** * Get the specific tune. * * @param {string} tuneId - The ID of the tune. * @param {FineTuning.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link OctoAI.fineTuning.UnprocessableEntityError} * * @example * await client.fineTuning.get("tune_id") */ get(tuneId: string, requestOptions?: FineTuning.RequestOptions): Promise; /** * Delete the specified tune. * * @param {string} tuneId - The ID of the tune. * @param {FineTuning.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link OctoAI.fineTuning.UnprocessableEntityError} * * @example * await client.fineTuning.delete("tune_id") */ delete(tuneId: string, requestOptions?: FineTuning.RequestOptions): Promise>; /** * Cancel the specified tune. * * @param {string} tuneId - The ID of the tune to cancel. * @param {FineTuning.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link OctoAI.fineTuning.UnprocessableEntityError} * * @example * await client.fineTuning.cancel("tune_id") */ cancel(tuneId: string, requestOptions?: FineTuning.RequestOptions): Promise; /** * List all tunes owned by the current user. * * @param {OctoAI.fineTuning.ListRequest} request * @param {FineTuning.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link OctoAI.fineTuning.UnprocessableEntityError} * * @example * await client.fineTuning.list() */ list(request?: OctoAI.fineTuning.ListRequest, requestOptions?: FineTuning.RequestOptions): Promise; protected _getAuthorizationHeader(): Promise; }