Class FineTuningClient
java.lang.Object
io.github.stefanbratanov.jvm.openai.FineTuningClient
Manage fine-tuning jobs to tailor a model to your specific training data.
Based on Fine-tuning
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
static final record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final HttpClient
protected final com.fasterxml.jackson.databind.ObjectMapper
-
Method Summary
Modifier and TypeMethodDescriptioncancelFineTuningJob
(String fineTuningJobId) Immediately cancel a fine-tune job.Creates a fine-tuning job which begins the process of creating a new model from a given dataset.Get status updates for a fine-tuning job.listFineTuningJobs
(Optional<Integer> limit, Optional<String> after) List your organization's fine-tuning jobsretrieveFineTuningJob
(String fineTuningJobId) Get info about a fine-tuning job.
-
Field Details
-
httpClient
-
objectMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Method Details
-
createFineTuningJob
Creates a fine-tuning job which begins the process of creating a new 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.
- Throws:
OpenAIException
- in case of API errors
-
listFineTuningJobs
public FineTuningClient.PaginatedFineTuningJobs listFineTuningJobs(Optional<Integer> limit, Optional<String> after) List your organization's fine-tuning jobs- Parameters:
limit
- Number of fine-tuning jobs to retrieve.after
- Identifier for the last job from the previous pagination request.- Throws:
OpenAIException
- in case of API errors
-
listFineTuningJobEvents
public FineTuningClient.PaginatedFineTuningEvents listFineTuningJobEvents(String fineTuningJobId, Optional<Integer> limit, Optional<String> after) Get status updates for a fine-tuning job.- Parameters:
fineTuningJobId
- The ID of the fine-tuning job to get events for.limit
- Number of fine-tuning jobs to retrieve.after
- Identifier for the last job from the previous pagination request.- Throws:
OpenAIException
- in case of API errors
-
retrieveFineTuningJob
Get info about a fine-tuning job.- Parameters:
fineTuningJobId
- The ID of the fine-tuning job.- Throws:
OpenAIException
- in case of API errors
-
cancelFineTuningJob
Immediately cancel a fine-tune job.- Parameters:
fineTuningJobId
- The ID of the fine-tuning job to cancel.- Throws:
OpenAIException
- in case of API errors
-