GET
/
v4
/
fine-tuning-jobs
/
{fine_tuning_job_id}
import SGPClient from 'sgp';

const client = new SGPClient({
  apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});

async function main() {
  const fineTuningJob = await client.fineTuningJobs.retrieve('fine_tuning_job_id');

  console.log(fineTuningJob.id);
}

main();
{
  "base_model_id": "<string>",
  "vendor_configuration": {
    "vendor": "LAUNCH",
    "hyperparameters": {},
    "wandb_config": {},
    "suffix": "<string>",
    "output": "<string>"
  },
  "fine_tuned_model_id": "<string>",
  "training_dataset_id": "<string>",
  "validation_dataset_id": "<string>",
  "status": "PENDING",
  "id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "account_id": "<string>",
  "created_by_user_id": "<string>"
}

Authorizations

x-api-key
string
header
required

Path Parameters

fine_tuning_job_id
string
required

Response

200
application/json
Successful Response
training_dataset_id
string
required
status
enum<string>
required
Available options:
PENDING,
COMPLETED,
FAILED,
RUNNING,
CANCELED
id
string
required

The unique identifier of the entity.

created_at
string
required

The date and time when the entity was created in ISO format.

account_id
string
required

The ID of the account that owns the given entity.

created_by_user_id
string
required

The user who originally created the entity.

base_model_id
string
vendor_configuration
object
fine_tuned_model_id
string
validation_dataset_id
string