import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const fineTuningJobEvent of client.fineTuningJobs.events.list('fine_tuning_job_id')) {
console.log(fineTuningJobEvent.level);
}
[
{
"timestamp": 123,
"message": "<string>",
"level": "<string>"
}
]
import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const fineTuningJobEvent of client.fineTuningJobs.events.list('fine_tuning_job_id')) {
console.log(fineTuningJobEvent.level);
}
[
{
"timestamp": 123,
"message": "<string>",
"level": "<string>"
}
]
Successful Response
The response is of type FineTuningJobEvent · object[]
.