TsgcHTTP_API_OpenAIMethods › ListFineTuningJobEvents

ListFineTuningJobEvents Method

Lists status and progress events emitted by a fine-tuning job

Syntax

function ListFineTuningJobEvents(const aJobId: string; const aLimit: Integer = 20; const aAfter: string = '') : TsgcOpenAIClass_Response_List_FineTuningEvents;

Parameters

NameTypeDescription
aJobIdconst stringIdentifier of the fine-tuning job to inspect
aLimitconst IntegerMaximum number of events to return per page (default 20)
aAfterconst stringCursor identifying the last event of a previous page

Return Value

Paginated list of event records with level, message and creation time (TsgcOpenAIClass_Response_List_FineTuningEvents)

Remarks

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.

Example

oResponse := oAPI.ListFineTuningJobEvents('ftjob-abc123', 100);
for i := 0 to oResponse.Data.Count - 1 do
  Memo1.Lines.Add(oResponse.Data[i].Message);

Back to Methods