Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
interface CreateFineTuningJobParams
Re-export
import { type CreateFineTuningJobParams } from "https://deno.land/x/openai_deno@v0.9.8/mod.ts";

Properties

optional
validationFile: File | string | null

The ID of an uploaded file that contains validation data.

If you provide this file, the data is used to generate validation metrics periodically during fine-tuning. These metrics can be viewed in the fine-tuning results file. The same data should not be present in both train and validation files.

Your dataset must be formatted as a JSONL file. You must upload your file with the purpose fine-tune.

See the fine-tuning guide for more details.

optional
hyperparameters: { nEpochs?: number; }

The hyperparameters used for the fine-tuning job.

optional
suffix: string | null

A string of up to 40 characters that will be added to your fine-tuned model name.

For example, a suffix of "custom-model-name" would produce a model name like ft:gpt-3.5-turbo:openai:custom-model-name:7p4lURel.