TsgcHTTP_API_OpenAIMethods › ListFineTuningJobCheckpoints

ListFineTuningJobCheckpoints Method

Lists the intermediate model checkpoints produced during a fine-tuning job

Syntax

function ListFineTuningJobCheckpoints(const aJobId: string; const aLimit: Integer = 20; const aAfter: string = '') : TsgcOpenAIClass_Response_List_FineTuningCheckpoints;

Parameters

NameTypeDescription
aJobIdconst stringIdentifier of the fine-tuning job whose checkpoints to list
aLimitconst IntegerMaximum number of checkpoints to return per page (default 20)
aAfterconst stringCursor identifying the last checkpoint of a previous page

Return Value

Paginated list of checkpoint records with step number and trained tokens (TsgcOpenAIClass_Response_List_FineTuningCheckpoints)

Remarks

Calls the GET /v1/fine_tuning/jobs/{fine_tuning_job_id}/checkpoints endpoint. Each checkpoint is a deployable model snapshot taken during training, letting you evaluate intermediate performance or fall back if the final epoch overfits. Checkpoints are only produced when training completes successfully.

Example

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

Back to Methods