Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit b4aaca2

Browse files
Fixes before v1.6.0 release
Applies 7cf4d2baeeda1814cf2587b858a7bf7548e32b83..f79505bf31e16decb023c7d0f87577cfc340aa2d
1 parent 281282b commit b4aaca2

15 files changed

+108
-405
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## 1.6.0 - 2023-09-05
8+
## 1.6.0 - 2023-09-06
99

1010
### Added
1111
- Add support for OpenAI's new **fine-tuning** API, which allows fine-tuning of GPT 3.5 Turbo. [Fine-tuning guide](https://platform.openai.com/docs/guides/fine-tuning). [Announcement](https://openai.com/blog/gpt-3-5-turbo-fine-tuning-and-api-updates).

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ See the table below for a full list of API Handlers and Methods.
314314
|`Files::create()`|Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit.|`POST` `/files`|
315315
|`Files::retrieve()`|Returns information about a specific file.|`GET` `/files/{file_id}`|
316316
|`Files::delete()`|Delete a file.|`DELETE` `/files/{file_id}`|
317-
|`FilesContent::download()`|Returns the contents of the specified file|`GET` `/files/{file_id}/content`|
317+
|`FilesContent::download()`|Returns the contents of the specified file.|`GET` `/files/{file_id}/content`|
318318
|~~`FineTunes::list()`~~|~~List your organization's fine-tuning jobs~~|~~`GET` `/fine-tunes`~~|
319319
|~~`FineTunes::create()`~~|~~Creates a job that fine-tunes a specified model from a given dataset.<br />Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.<br />Learn more about fine-tuning~~|~~`POST` `/fine-tunes`~~|
320320
|~~`FineTunes::retrieve()`~~|~~Gets info about the fine-tune job.<br />Learn more about fine-tuning~~|~~`GET` `/fine-tunes/{fine_tune_id}`~~|

src/Handlers/Files.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function create($body): self
9898
* Operation URL: GET /files/{file_id}
9999
* Operation ID: retrieveFile
100100
*
101-
* @param string $fileId The ID of the file to use for this request
101+
* @param string $fileId The ID of the file to use for this request.
102102
*
103103
* @api
104104
* @return self
@@ -121,7 +121,7 @@ public function retrieve($fileId): self
121121
* Operation URL: DELETE /files/{file_id}
122122
* Operation ID: deleteFile
123123
*
124-
* @param string $fileId The ID of the file to use for this request
124+
* @param string $fileId The ID of the file to use for this request.
125125
*
126126
* @api
127127
* @return self

src/Handlers/FilesContent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ public function __construct(?Client $client = null)
4242
}
4343

4444
/**
45-
* Returns the contents of the specified file
45+
* Returns the contents of the specified file.
4646
*
4747
* Operation URL: GET /files/{file_id}/content
4848
* Operation ID: downloadFile
4949
*
50-
* @param string $fileId The ID of the file to use for this request
50+
* @param string $fileId The ID of the file to use for this request.
5151
*
5252
* @api
5353
* @return self

src/Handlers/FineTuningJobs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function create($body): self
103103
* Operation URL: GET /fine_tuning/jobs/{fine_tuning_job_id}
104104
* Operation ID: retrieveFineTuningJob
105105
*
106-
* @param string $fineTuningJobId The ID of the fine-tuning job
106+
* @param string $fineTuningJobId The ID of the fine-tuning job.
107107
*
108108
* @api
109109
* @return self

src/Handlers/FineTuningJobsCancel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function __construct(?Client $client = null)
4747
* Operation URL: POST /fine_tuning/jobs/{fine_tuning_job_id}/cancel
4848
* Operation ID: cancelFineTuningJob
4949
*
50-
* @param string $fineTuningJobId The ID of the fine-tuning job to cancel
50+
* @param string $fineTuningJobId The ID of the fine-tuning job to cancel.
5151
*
5252
* @api
5353
* @return self

src/Models/FineTuningJobs/CreateResponse.php

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ final class CreateResponse extends AbstractModel
5959
public $created_at;
6060

6161
/**
62-
* The Unix timestamp (in seconds) for when the fine-tuning job was finished.
62+
* The Unix timestamp (in seconds) for when the fine-tuning job was finished. The
63+
* value will be null if the fine-tuning job is still running.
6364
*
64-
* @var int
65+
* @var int|null
6566
*/
6667
public $finished_at;
6768

@@ -73,7 +74,8 @@ final class CreateResponse extends AbstractModel
7374
public $model;
7475

7576
/**
76-
* The name of the fine-tuned model that is being created.
77+
* The name of the fine-tuned model that is being created. The value will be null
78+
* if the fine-tuning job is still running.
7779
*
7880
* @var string|null
7981
*/
@@ -103,30 +105,34 @@ final class CreateResponse extends AbstractModel
103105
public $hyperparameters;
104106

105107
/**
106-
* The file ID used for training.
108+
* The file ID used for training. You can retrieve the training data with the Files
109+
* API.
107110
*
108111
* @var string
109112
*/
110113
public $training_file;
111114

112115
/**
113-
* The file ID used for validation.
116+
* The file ID used for validation. You can retrieve the validation results with
117+
* the Files API.
114118
*
115119
* @var string|null
116120
*/
117121
public $validation_file;
118122

119123
/**
120-
* The compiled results files for the fine-tuning job.
124+
* The compiled results file ID(s) for the fine-tuning job. You can retrieve the
125+
* results with the Files API.
121126
*
122-
* @var \Tectalic\OpenAi\Models\FineTuningJobs\CreateResponseResultFilesItem[]
127+
* @var string[]
123128
*/
124129
public $result_files;
125130

126131
/**
127-
* The total number of billable tokens processed by this fine tuning job.
132+
* The total number of billable tokens processed by this fine-tuning job. The value
133+
* will be null if the fine-tuning job is still running.
128134
*
129-
* @var int
135+
* @var int|null
130136
*/
131137
public $trained_tokens;
132138
}

src/Models/FineTuningJobs/CreateResponseResultFilesItem.php

Lines changed: 0 additions & 83 deletions
This file was deleted.

src/Models/FineTuningJobs/ListPaginatedResponseDataItem.php

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ final class ListPaginatedResponseDataItem extends AbstractModel
5959
public $created_at;
6060

6161
/**
62-
* The Unix timestamp (in seconds) for when the fine-tuning job was finished.
62+
* The Unix timestamp (in seconds) for when the fine-tuning job was finished. The
63+
* value will be null if the fine-tuning job is still running.
6364
*
64-
* @var int
65+
* @var int|null
6566
*/
6667
public $finished_at;
6768

@@ -73,7 +74,8 @@ final class ListPaginatedResponseDataItem extends AbstractModel
7374
public $model;
7475

7576
/**
76-
* The name of the fine-tuned model that is being created.
77+
* The name of the fine-tuned model that is being created. The value will be null
78+
* if the fine-tuning job is still running.
7779
*
7880
* @var string|null
7981
*/
@@ -103,30 +105,34 @@ final class ListPaginatedResponseDataItem extends AbstractModel
103105
public $hyperparameters;
104106

105107
/**
106-
* The file ID used for training.
108+
* The file ID used for training. You can retrieve the training data with the Files
109+
* API.
107110
*
108111
* @var string
109112
*/
110113
public $training_file;
111114

112115
/**
113-
* The file ID used for validation.
116+
* The file ID used for validation. You can retrieve the validation results with
117+
* the Files API.
114118
*
115119
* @var string|null
116120
*/
117121
public $validation_file;
118122

119123
/**
120-
* The compiled results files for the fine-tuning job.
124+
* The compiled results file ID(s) for the fine-tuning job. You can retrieve the
125+
* results with the Files API.
121126
*
122-
* @var \Tectalic\OpenAi\Models\FineTuningJobs\ListPaginatedResponseDataItemResultFilesItem[]
127+
* @var string[]
123128
*/
124129
public $result_files;
125130

126131
/**
127-
* The total number of billable tokens processed by this fine tuning job.
132+
* The total number of billable tokens processed by this fine-tuning job. The value
133+
* will be null if the fine-tuning job is still running.
128134
*
129-
* @var int
135+
* @var int|null
130136
*/
131137
public $trained_tokens;
132138
}

src/Models/FineTuningJobs/ListPaginatedResponseDataItemResultFilesItem.php

Lines changed: 0 additions & 83 deletions
This file was deleted.

0 commit comments

Comments
 (0)