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

x/openai/resources/fine-tuning/jobs.ts>FineTuningJob

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
namespace FineTuningJob
import { FineTuningJob } from "https://deno.land/x/openai@v4.24.4/resources/fine-tuning/jobs.ts";

Interfaces

For fine-tuning jobs that have failed, this will contain more information on the cause of the failure.

The hyperparameters used for the fine-tuning job. See the fine-tuning guide for more details.

interface FineTuningJob
import { type FineTuningJob } from "https://deno.land/x/openai@v4.24.4/resources/fine-tuning/jobs.ts";

The fine_tuning.job object represents a fine-tuning job that has been created through the API.

Properties

id: string

The object identifier, which can be referenced in the API endpoints.

created_at: number

The Unix timestamp (in seconds) for when the fine-tuning job was created.

error: FineTuningJob.Error | null

For fine-tuning jobs that have failed, this will contain more information on the cause of the failure.

fine_tuned_model: string | null

The name of the fine-tuned model that is being created. The value will be null if the fine-tuning job is still running.

finished_at: number | null

The Unix timestamp (in seconds) for when the fine-tuning job was finished. The value will be null if the fine-tuning job is still running.

The hyperparameters used for the fine-tuning job. See the fine-tuning guide for more details.

model: string

The base model that is being fine-tuned.

object: "fine_tuning.job"

The object type, which is always "fine_tuning.job".

organization_id: string

The organization that owns the fine-tuning job.

result_files: Array<string>

The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the Files API.

status:
| "validating_files"
| "queued"
| "running"
| "succeeded"
| "failed"
| "cancelled"

The current status of the fine-tuning job, which can be either validating_files, queued, running, succeeded, failed, or cancelled.

trained_tokens: number | null

The total number of billable tokens processed by this fine-tuning job. The value will be null if the fine-tuning job is still running.

training_file: string

The file ID used for training. You can retrieve the training data with the Files API.

validation_file: string | null

The file ID used for validation. You can retrieve the validation results with the Files API.