Skip to content

List fine-tuning events

JobListEventsPage fineTuning().jobs().listEvents(JobListEventsParamsparams = JobListEventsParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
GET/fine_tuning/jobs/{fine_tuning_job_id}/events

Get status updates for a fine-tuning job.

ParametersExpand Collapse
JobListEventsParams params
Optional<String> fineTuningJobId
Optional<String> after

Identifier for the last event from the previous pagination request.

Optional<Long> limit

Number of events to retrieve.

ReturnsExpand Collapse
class FineTuningJobEvent:

Fine-tuning job event object

String id

The object identifier.

long createdAt

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

Level level

The log level of the event.

Accepts one of the following:
INFO("info")
WARN("warn")
ERROR("error")
String message

The message of the event.

JsonValue; object_ "fine_tuning.job.event"constant"fine_tuning.job.event"constant

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

Optional<JsonValue> data

The data associated with the event.

Optional<Type> type

The type of event.

Accepts one of the following:
MESSAGE("message")
METRICS("metrics")

List fine-tuning events

package com.openai.example;

import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.finetuning.jobs.JobListEventsPage;
import com.openai.models.finetuning.jobs.JobListEventsParams;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        OpenAIClient client = OpenAIOkHttpClient.fromEnv();

        JobListEventsPage page = client.fineTuning().jobs().listEvents("ft-AF1WoRqd3aJAHsqc9NY7iL8F");
    }
}
{
  "data": [
    {
      "id": "id",
      "created_at": 0,
      "level": "info",
      "message": "message",
      "object": "fine_tuning.job.event",
      "data": {},
      "type": "message"
    }
  ],
  "has_more": true,
  "object": "list"
}
Returns Examples
{
  "data": [
    {
      "id": "id",
      "created_at": 0,
      "level": "info",
      "message": "message",
      "object": "fine_tuning.job.event",
      "data": {},
      "type": "message"
    }
  ],
  "has_more": true,
  "object": "list"
}