From 73eca3747b14621cba74d775def133a699b1410b Mon Sep 17 00:00:00 2001 From: Alberto Peripolli Date: Sat, 4 Nov 2023 12:25:59 +0100 Subject: [PATCH] Update new fineTuning Job id names --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 361c0e83..afc6f0f9 100644 --- a/README.md +++ b/README.md @@ -499,13 +499,13 @@ $response = $client->fineTuning()->createJob([ 'suffix' => null, ]); -$response->id; // 'ft-AF1WoRqd3aJAHsqc9NY7iL8F' +$response->id; // 'ftjob-AF1WoRqd3aJAHsqc9NY7iL8F' $response->object; // 'fine_tuning.job' $response->model; // 'gpt-3.5-turbo-0613' $response->fineTunedModel; // null // ... -$response->toArray(); // ['id' => 'ft-AF1WoRqd3aJAHsqc9NY7iL8F', ...] +$response->toArray(); // ['id' => 'ftjob-AF1WoRqd3aJAHsqc9NY7iL8F', ...] ``` #### `list jobs` @@ -518,7 +518,7 @@ $response = $client->fineTuning()->listJobs(); $response->object; // 'list' foreach ($response->data as $result) { - $result->id; // 'ft-AF1WoRqd3aJAHsqc9NY7iL8F' + $result->id; // 'ftjob-AF1WoRqd3aJAHsqc9NY7iL8F' $result->object; // 'fine_tuning.job' // ... } @@ -531,7 +531,7 @@ You can pass additional parameters to the `listJobs` method to narrow down the r ```php $response = $client->fineTuning()->listJobs([ 'limit' => 3, // Number of jobs to retrieve (Default: 20) - 'after' => 'ft-AF1WoRqd3aJAHsqc9NY7iL8F', // Identifier for the last job from the previous pagination request. + 'after' => 'ftjob-AF1WoRqd3aJAHsqc9NY7iL8F', // Identifier for the last job from the previous pagination request. ]); ``` @@ -540,9 +540,9 @@ $response = $client->fineTuning()->listJobs([ Get info about a fine-tuning job. ```php -$response = $client->fineTuning()->retrieveJob('ft-AF1WoRqd3aJAHsqc9NY7iL8F'); +$response = $client->fineTuning()->retrieveJob('ftjob-AF1WoRqd3aJAHsqc9NY7iL8F'); -$response->id; // 'ft-AF1WoRqd3aJAHsqc9NY7iL8F' +$response->id; // 'ftjob-AF1WoRqd3aJAHsqc9NY7iL8F' $response->object; // 'fine_tuning.job' $response->model; // 'gpt-3.5-turbo-0613' $response->createdAt; // 1614807352 @@ -557,7 +557,7 @@ $response->trainedTokens; // 5049 $response->hyperparameters->nEpochs; // 9 -$response->toArray(); // ['id' => 'ft-AF1WoRqd3aJAHsqc9NY7iL8F', ...] +$response->toArray(); // ['id' => 'ftjob-AF1WoRqd3aJAHsqc9NY7iL8F', ...] ``` #### `cancel job` @@ -565,15 +565,15 @@ $response->toArray(); // ['id' => 'ft-AF1WoRqd3aJAHsqc9NY7iL8F', ...] Immediately cancel a fine-tune job. ```php -$response = $client->fineTuning()->cancelJob('ft-AF1WoRqd3aJAHsqc9NY7iL8F'); +$response = $client->fineTuning()->cancelJob('ftjob-AF1WoRqd3aJAHsqc9NY7iL8F'); -$response->id; // 'ft-AF1WoRqd3aJAHsqc9NY7iL8F' +$response->id; // 'ftjob-AF1WoRqd3aJAHsqc9NY7iL8F' $response->object; // 'fine_tuning.job' // ... $response->status; // 'cancelled' // ... -$response->toArray(); // ['id' => 'ft-AF1WoRqd3aJAHsqc9NY7iL8F', ...] +$response->toArray(); // ['id' => 'ftjob-AF1WoRqd3aJAHsqc9NY7iL8F', ...] ``` #### `list job events` @@ -581,7 +581,7 @@ $response->toArray(); // ['id' => 'ft-AF1WoRqd3aJAHsqc9NY7iL8F', ...] Get status updates for a fine-tuning job. ```php -$response = $client->fineTuning()->listJobEvents('ft-AF1WoRqd3aJAHsqc9NY7iL8F'); +$response = $client->fineTuning()->listJobEvents('ftjob-AF1WoRqd3aJAHsqc9NY7iL8F'); $response->object; // 'list' @@ -597,7 +597,7 @@ $response->toArray(); // ['object' => 'list', 'data' => [...]] You can pass additional parameters to the `listJobEvents` method to narrow down the results. ```php -$response = $client->fineTuning()->listJobEvents('ft-AF1WoRqd3aJAHsqc9NY7iL8F', [ +$response = $client->fineTuning()->listJobEvents('ftjob-AF1WoRqd3aJAHsqc9NY7iL8F', [ 'limit' => 3, // Number of events to retrieve (Default: 20) 'after' => 'ftevent-kLPSMIcsqshEUEJVOVBVcHlP', // Identifier for the last event from the previous pagination request. ]);