Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/resources/fine-tunes.ts>FineTunes

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
class FineTunes
extends APIResource
import { FineTunes } from "https://deno.land/x/openai@v4.24.3/resources/fine-tunes.ts";

Methods

cancel(fineTuneId: string, options?: Core.RequestOptions): Core.APIPromise<FineTune>

Immediately cancel a fine-tune job.

create(body: FineTuneCreateParams, options?: Core.RequestOptions): Core.APIPromise<FineTune>

Creates a job that fine-tunes a specified model from a given dataset.

Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.

Learn more about fine-tuning

list(options?: Core.RequestOptions): Core.PagePromise<FineTunesPage, FineTune>

List your organization's fine-tuning jobs

listEvents(
fineTuneId: string,
options?: Core.RequestOptions,
): APIPromise<FineTuneEventsListResponse>

Get fine-grained status updates for a fine-tune job.

listEvents(
fineTuneId: string,
options?: Core.RequestOptions,
): APIPromise<Stream<FineTuneEvent>>
listEvents(
fineTuneId: string,
query?: FineTuneListEventsParamsBase | undefined,
options?: Core.RequestOptions,
): APIPromise<Stream<FineTuneEvent> | FineTuneEventsListResponse>
retrieve(fineTuneId: string, options?: Core.RequestOptions): Core.APIPromise<FineTune>

Gets info about the fine-tune job.

Learn more about fine-tuning