TsgcHTTP_API_OpenAI › Methods › ListFineTuningJobEvents
Lists status and progress events emitted by a fine-tuning job
function ListFineTuningJobEvents(const aJobId: string; const aLimit: Integer = 20; const aAfter: string = '') : TsgcOpenAIClass_Response_List_FineTuningEvents;
| Name | Type | Description |
|---|---|---|
aJobId | const string | Identifier of the fine-tuning job to inspect |
aLimit | const Integer | Maximum number of events to return per page (default 20) |
aAfter | const string | Cursor identifying the last event of a previous page |
Paginated list of event records with level, message and creation time (TsgcOpenAIClass_Response_List_FineTuningEvents)
Calls the GET /v1/fine_tuning/jobs/{fine_tuning_job_id}/events endpoint. Events give human-readable progress information such as step counts, loss values and error messages, and are useful for tracking long-running training jobs. Combine with RetrieveFineTuningJob for a complete status view.
oResponse := oAPI.ListFineTuningJobEvents('ftjob-abc123', 100);
for i := 0 to oResponse.Data.Count - 1 do
Memo1.Lines.Add(oResponse.Data[i].Message);