Class CreateFineTuningJobRequest.Builder
java.lang.Object
io.github.stefanbratanov.jvm.openai.CreateFineTuningJobRequest.Builder
- Enclosing class:
- CreateFineTuningJobRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
hyperparameters
(CreateFineTuningJobRequest.Hyperparameters hyperparameters) trainingFile
(String trainingFile) validationFile
(String validationFile)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
model
- Parameters:
model
- The name of the model to fine-tune
-
trainingFile
- Parameters:
trainingFile
- The ID of an uploaded file that contains training data. Your dataset must be formatted as a JSONL file. Additionally, you must upload your file with the purpose fine-tune.
-
hyperparameters
public CreateFineTuningJobRequest.Builder hyperparameters(CreateFineTuningJobRequest.Hyperparameters hyperparameters) - Parameters:
hyperparameters
- The hyperparameters used for the fine-tuning job
-
suffix
- Parameters:
suffix
- A string of up to 18 characters that will be added to your fine-tuned model name
-
validationFile
- Parameters:
validationFile
- 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.
-
build
-