import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const fineTuningJob = await client.fineTuningJobs.retrieve('fine_tuning_job_id');
console.log(fineTuningJob.id);{
"training_dataset_id": "<string>",
"status": "PENDING",
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"account_id": "<string>",
"created_by_user_id": "<string>",
"created_by_identity_type": "user",
"base_model_id": "<string>",
"vendor_configuration": {
"vendor": "LAUNCH",
"hyperparameters": {},
"wandb_config": {},
"suffix": "<string>",
"output": "<string>"
},
"fine_tuned_model_id": "<string>",
"validation_dataset_id": "<string>"
}Gets the details of a fine tuning job
This API can be used to get information about a single fine tuning job by ID. To use this API, pass in the id that was returned from your Create Fine Tuning Job API call as a path parameter.
Review the response schema to see the fields that will be returned.
import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const fineTuningJob = await client.fineTuningJobs.retrieve('fine_tuning_job_id');
console.log(fineTuningJob.id);{
"training_dataset_id": "<string>",
"status": "PENDING",
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"account_id": "<string>",
"created_by_user_id": "<string>",
"created_by_identity_type": "user",
"base_model_id": "<string>",
"vendor_configuration": {
"vendor": "LAUNCH",
"hyperparameters": {},
"wandb_config": {},
"suffix": "<string>",
"output": "<string>"
},
"fine_tuned_model_id": "<string>",
"validation_dataset_id": "<string>"
}Successful Response
PENDING, COMPLETED, FAILED, RUNNING, CANCELED The unique identifier of the entity.
The date and time when the entity was created in ISO format.
The ID of the account that owns the given entity.
The user who originally created the entity.
The type of identity that created the entity.
user, service_account