TsgcHTTP_API_OpenAI › Methods › ListFineTuningJobCheckpoints
Lists the intermediate model checkpoints produced during a fine-tuning job
function ListFineTuningJobCheckpoints(const aJobId: string; const aLimit: Integer = 20; const aAfter: string = '') : TsgcOpenAIClass_Response_List_FineTuningCheckpoints;
| Name | Type | Description |
|---|---|---|
aJobId | const string | Identifier of the fine-tuning job whose checkpoints to list |
aLimit | const Integer | Maximum number of checkpoints to return per page (default 20) |
aAfter | const string | Cursor identifying the last checkpoint of a previous page |
Paginated list of checkpoint records with step number and trained tokens (TsgcOpenAIClass_Response_List_FineTuningCheckpoints)
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.
oResponse := oAPI.ListFineTuningJobCheckpoints('ftjob-abc123');
for i := 0 to oResponse.Data.Count - 1 do
Memo1.Lines.Add(oResponse.Data[i].FineTunedModelCheckpoint);