Class FineTuningJobCreateParams.Builder
-
- All Implemented Interfaces:
public final class FineTuningJobCreateParams.Builder
A builder for FineTuningJobCreateParams.
-
-
Method Summary
-
-
Method Detail
-
model
final FineTuningJobCreateParams.Builder model(FineTuningJobCreateParams.Model model)
The name of the model to fine-tune. You can select one of the supported models.
-
model
final FineTuningJobCreateParams.Builder model(JsonField<FineTuningJobCreateParams.Model> model)
The name of the model to fine-tune. You can select one of the supported models.
-
model
final FineTuningJobCreateParams.Builder model(String value)
The name of the model to fine-tune. You can select one of the supported models.
-
trainingFile
final FineTuningJobCreateParams.Builder trainingFile(String trainingFile)
The ID of an uploaded file that contains training data.
See upload file for how to upload a file.
Your dataset must be formatted as a JSONL file. Additionally, you must upload your file with the purpose
fine-tune
.The contents of the file should differ depending on if the model uses the chat, completions format, or if the fine-tuning method uses the preference format.
See the fine-tuning guide for more details.
-
trainingFile
final FineTuningJobCreateParams.Builder trainingFile(JsonField<String> trainingFile)
The ID of an uploaded file that contains training data.
See upload file for how to upload a file.
Your dataset must be formatted as a JSONL file. Additionally, you must upload your file with the purpose
fine-tune
.The contents of the file should differ depending on if the model uses the chat, completions format, or if the fine-tuning method uses the preference format.
See the fine-tuning guide for more details.
-
hyperparameters
@Deprecated(message = "deprecated") final FineTuningJobCreateParams.Builder hyperparameters(FineTuningJobCreateParams.Hyperparameters hyperparameters)
The hyperparameters used for the fine-tuning job. This value is now deprecated in favor of
method
, and should be passed in under themethod
parameter.
-
hyperparameters
@Deprecated(message = "deprecated") final FineTuningJobCreateParams.Builder hyperparameters(JsonField<FineTuningJobCreateParams.Hyperparameters> hyperparameters)
The hyperparameters used for the fine-tuning job. This value is now deprecated in favor of
method
, and should be passed in under themethod
parameter.
-
integrations
final FineTuningJobCreateParams.Builder integrations(List<FineTuningJobCreateParams.Integration> integrations)
A list of integrations to enable for your fine-tuning job.
-
integrations
final FineTuningJobCreateParams.Builder integrations(Optional<List<FineTuningJobCreateParams.Integration>> integrations)
A list of integrations to enable for your fine-tuning job.
-
integrations
final FineTuningJobCreateParams.Builder integrations(JsonField<List<FineTuningJobCreateParams.Integration>> integrations)
A list of integrations to enable for your fine-tuning job.
-
addIntegration
final FineTuningJobCreateParams.Builder addIntegration(FineTuningJobCreateParams.Integration integration)
A list of integrations to enable for your fine-tuning job.
-
method
final FineTuningJobCreateParams.Builder method(FineTuningJobCreateParams.Method method)
The method used for fine-tuning.
-
method
final FineTuningJobCreateParams.Builder method(JsonField<FineTuningJobCreateParams.Method> method)
The method used for fine-tuning.
-
seed
final FineTuningJobCreateParams.Builder seed(Long seed)
The seed controls the reproducibility of the job. Passing in the same seed and job parameters should produce the same results, but may differ in rare cases. If a seed is not specified, one will be generated for you.
-
seed
final FineTuningJobCreateParams.Builder seed(Long seed)
The seed controls the reproducibility of the job. Passing in the same seed and job parameters should produce the same results, but may differ in rare cases. If a seed is not specified, one will be generated for you.
-
seed
final FineTuningJobCreateParams.Builder seed(Optional<Long> seed)
The seed controls the reproducibility of the job. Passing in the same seed and job parameters should produce the same results, but may differ in rare cases. If a seed is not specified, one will be generated for you.
-
seed
final FineTuningJobCreateParams.Builder seed(JsonField<Long> seed)
The seed controls the reproducibility of the job. Passing in the same seed and job parameters should produce the same results, but may differ in rare cases. If a seed is not specified, one will be generated for you.
-
suffix
final FineTuningJobCreateParams.Builder suffix(String suffix)
A string of up to 64 characters that will be added to your fine-tuned model name.
For example, a
suffix
of "custom-model-name" would produce a model name likeft:gpt-4o-mini:openai:custom-model-name:7p4lURel
.
-
suffix
final FineTuningJobCreateParams.Builder suffix(Optional<String> suffix)
A string of up to 64 characters that will be added to your fine-tuned model name.
For example, a
suffix
of "custom-model-name" would produce a model name likeft:gpt-4o-mini:openai:custom-model-name:7p4lURel
.
-
suffix
final FineTuningJobCreateParams.Builder suffix(JsonField<String> suffix)
A string of up to 64 characters that will be added to your fine-tuned model name.
For example, a
suffix
of "custom-model-name" would produce a model name likeft:gpt-4o-mini:openai:custom-model-name:7p4lURel
.
-
validationFile
final FineTuningJobCreateParams.Builder validationFile(String 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.
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.
-
validationFile
final FineTuningJobCreateParams.Builder validationFile(Optional<String> 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.
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.
-
validationFile
final FineTuningJobCreateParams.Builder validationFile(JsonField<String> 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.
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.
-
additionalBodyProperties
final FineTuningJobCreateParams.Builder additionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
putAdditionalBodyProperty
final FineTuningJobCreateParams.Builder putAdditionalBodyProperty(String key, JsonValue value)
-
putAllAdditionalBodyProperties
final FineTuningJobCreateParams.Builder putAllAdditionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
removeAdditionalBodyProperty
final FineTuningJobCreateParams.Builder removeAdditionalBodyProperty(String key)
-
removeAllAdditionalBodyProperties
final FineTuningJobCreateParams.Builder removeAllAdditionalBodyProperties(Set<String> keys)
-
additionalHeaders
final FineTuningJobCreateParams.Builder additionalHeaders(Headers additionalHeaders)
-
additionalHeaders
final FineTuningJobCreateParams.Builder additionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
putAdditionalHeader
final FineTuningJobCreateParams.Builder putAdditionalHeader(String name, String value)
-
putAdditionalHeaders
final FineTuningJobCreateParams.Builder putAdditionalHeaders(String name, Iterable<String> values)
-
putAllAdditionalHeaders
final FineTuningJobCreateParams.Builder putAllAdditionalHeaders(Headers additionalHeaders)
-
putAllAdditionalHeaders
final FineTuningJobCreateParams.Builder putAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
replaceAdditionalHeaders
final FineTuningJobCreateParams.Builder replaceAdditionalHeaders(String name, String value)
-
replaceAdditionalHeaders
final FineTuningJobCreateParams.Builder replaceAdditionalHeaders(String name, Iterable<String> values)
-
replaceAllAdditionalHeaders
final FineTuningJobCreateParams.Builder replaceAllAdditionalHeaders(Headers additionalHeaders)
-
replaceAllAdditionalHeaders
final FineTuningJobCreateParams.Builder replaceAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
removeAdditionalHeaders
final FineTuningJobCreateParams.Builder removeAdditionalHeaders(String name)
-
removeAllAdditionalHeaders
final FineTuningJobCreateParams.Builder removeAllAdditionalHeaders(Set<String> names)
-
additionalQueryParams
final FineTuningJobCreateParams.Builder additionalQueryParams(QueryParams additionalQueryParams)
-
additionalQueryParams
final FineTuningJobCreateParams.Builder additionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
putAdditionalQueryParam
final FineTuningJobCreateParams.Builder putAdditionalQueryParam(String key, String value)
-
putAdditionalQueryParams
final FineTuningJobCreateParams.Builder putAdditionalQueryParams(String key, Iterable<String> values)
-
putAllAdditionalQueryParams
final FineTuningJobCreateParams.Builder putAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
putAllAdditionalQueryParams
final FineTuningJobCreateParams.Builder putAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
replaceAdditionalQueryParams
final FineTuningJobCreateParams.Builder replaceAdditionalQueryParams(String key, String value)
-
replaceAdditionalQueryParams
final FineTuningJobCreateParams.Builder replaceAdditionalQueryParams(String key, Iterable<String> values)
-
replaceAllAdditionalQueryParams
final FineTuningJobCreateParams.Builder replaceAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
replaceAllAdditionalQueryParams
final FineTuningJobCreateParams.Builder replaceAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
removeAdditionalQueryParams
final FineTuningJobCreateParams.Builder removeAdditionalQueryParams(String key)
-
removeAllAdditionalQueryParams
final FineTuningJobCreateParams.Builder removeAllAdditionalQueryParams(Set<String> keys)
-
build
final FineTuningJobCreateParams build()
-
-
-
-