TsgcHTTP_API_OpenAI › Methods › RetrieveFineTuningJob
Retrieves the current state of a fine-tuning job including status and result model name
function RetrieveFineTuningJob(const aJobId: string) : TsgcOpenAIClass_Response_FineTuningJob;
| Name | Type | Description |
|---|---|---|
aJobId | const string | Identifier of the fine-tuning job, typically starting with "ftjob-" |
Full fine-tuning job descriptor including Status, FineTunedModel and TrainedTokens (TsgcOpenAIClass_Response_FineTuningJob)
Calls the GET /v1/fine_tuning/jobs/{fine_tuning_job_id} endpoint. Poll this method to observe progress of a long-running job: Status transitions through validating_files, queued, running and eventually succeeded, failed or cancelled. When Status equals "succeeded", FineTunedModel contains the deployable model name.
oResponse := oAPI.RetrieveFineTuningJob('ftjob-abc123');
ShowMessage(Format('Status: %s, Model: %s',
[oResponse.Status, oResponse.FineTunedModel]));