You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 23, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+49Lines changed: 49 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,55 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
+
## 1.6.0 - 2023-09-05
9
+
10
+
### Added
11
+
- 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).
12
+
- Add new `FineTuningJobs` Handler, which creates and lists fine-tuning jobs.
13
+
- Add new `FineTuningJobsEvents` Handler, which gets status updates for a given fine-tuning job.
14
+
- Add new `FineTuningJobsCancel` Handler, which cancels an existing fine-tuning job.
15
+
- Add support for new content moderation categories: `harassment/threatening`, `self-harm/intent`, `self-harm/instructions`. [Moderation guide](https://platform.openai.com/docs/guides/moderation).
16
+
17
+
### Changed
18
+
- The `\Tectalic\OpenAi\Models\ChatCompletions\CreateRequestFunctionsItem::$parameters` property is now required.
19
+
- The `\Tectalic\OpenAi\Models\ChatCompletions\CreateRequestMessagesItem::$content` property is now required.
20
+
- The `\Tectalic\OpenAi\Models\ChatCompletions\CreateRequestMessagesItemFunctionCall``name` and `arguments` properties are now required.
21
+
- The `\Tectalic\OpenAi\Models\ChatCompletions\CreateResponseChoicesItem``index`, `message` and `finish_reason` properties are now required.
22
+
- The `\Tectalic\OpenAi\Models\ChatCompletions\CreateResponseChoicesItemMessage::$content` property is now required.
23
+
- The `\Tectalic\OpenAi\Models\ChatCompletions\CreateResponseChoicesItemMessageFunctionCall``name` and `arguments` properties are now required.
24
+
- The `\Tectalic\OpenAi\Models\Edits\CreateResponseChoicesItem``text`, `index` and `finish_reason` properties are now required.
25
+
- The `\Tectalic\OpenAi\Models\Edits\CreateResponseChoicesItem::$logprobs` property has been removed.
26
+
- The `\Tectalic\OpenAi\Models\Files\CreateResponse::$format` property is now required.
27
+
- The `\Tectalic\OpenAi\Models\Files\ListResponseDataItem::$format` property is now required.
28
+
- The `\Tectalic\OpenAi\Models\Files\RetrieveResponse::$format` property is now required.
29
+
- The `\Tectalic\OpenAi\Models\FineTunes\CreateResponseHyperparams` model structure is now defined, with the following required properties: `n_epochs`, `batch_size`, `prompt_loss_weight` and `learning_rate_multiplier`.
30
+
- The `\Tectalic\OpenAi\Models\FineTunes\CreateResponseResultFilesItem::$format` property is now required.
31
+
- The `\Tectalic\OpenAi\Models\FineTunes\CreateResponseTrainingFilesItem::$format` property is now required.
32
+
- The `\Tectalic\OpenAi\Models\FineTunes\CreateResponseValidationFilesItem::$format` property is now required.
33
+
- The `\Tectalic\OpenAi\Models\FineTunes\ListResponseDataItemHyperparams` model structure is now defined, with the following required properties: `n_epochs`, `batch_size`, `prompt_loss_weight` and `learning_rate_multiplier`.
34
+
- The `\Tectalic\OpenAi\Models\FineTunes\ListResponseDataItemResultFilesItem::$format` property is now required.
35
+
- The `\Tectalic\OpenAi\Models\FineTunes\ListResponseDataItemTrainingFilesItem::$format` property is now required.
36
+
- The `\Tectalic\OpenAi\Models\FineTunes\ListResponseDataItemValidationFilesItem::$format` property is now required.
37
+
- The `\Tectalic\OpenAi\Models\FineTunes\RetrieveResponseHyperparams` model structure is now defined, with the following required properties: `n_epochs`, `batch_size`, `prompt_loss_weight` and `learning_rate_multiplier`.
38
+
- The `\Tectalic\OpenAi\Models\FineTunes\RetrieveResponseResultFilesItem::$format` property is now required.
39
+
- The `\Tectalic\OpenAi\Models\FineTunes\RetrieveResponseTrainingFilesItem::$format` property is now required.
40
+
- The `\Tectalic\OpenAi\Models\FineTunes\RetrieveResponseValidationFilesItem::$format` property is now required.
41
+
- The `\Tectalic\OpenAi\Models\FineTunes\RetrieveResponseValidationFilesItem::$format` property is now required.
42
+
- The `\Tectalic\OpenAi\Models\FineTunesCancel\CancelFineTuneResponseHyperparams` model structure is now defined, with the following required properties: `n_epochs`, `batch_size`, `prompt_loss_weight` and `learning_rate_multiplier`.
43
+
- The `\Tectalic\OpenAi\Models\FineTunesCancel\CancelFineTuneResponseResultFilesItem::$format` property is now required.
44
+
- The `\Tectalic\OpenAi\Models\FineTunesCancel\CancelFineTuneResponseTrainingFilesItem::$format` property is now required.
45
+
- The `\Tectalic\OpenAi\Models\FineTunesCancel\CancelFineTuneResponseValidationFilesItem::$format` property is now required.
46
+
- The `\Tectalic\OpenAi\Models\Moderations\CreateResponseResultsItemCategories` model now supports `harassment/threatening`, `self-harm/intent`, `self-harm/instructions` information.
47
+
- The `\Tectalic\OpenAi\Models\Moderations\CreateResponseResultsItemCategoryScores` model now supports `harassment/threatening`, `self-harm/intent`, `self-harm/instructions` information.
48
+
- Improved documentation for many model properties.
49
+
- API version updated from 1.3.1 to 2.0.0.
50
+
51
+
### Deprecated
52
+
- Deprecate the `Edits` Handler. The `ChatCompletions` handler should be used instead. These endpoints will be shut down on January 04, 2024.
53
+
- Deprecate the `FineTunes` Handler. The new `FineTunesJobs` handler should be used instead. These endpoints will be shut down on January 04, 2024.
54
+
- Deprecate the `FineTunesEvents` Handler. The new `FineTunesJobsEvents` handler should be used instead. These endpoints will be shut down on January 04, 2024.
55
+
- Deprecate the `FineTunesCancel` Handler. The new `FineTunesJobsCancel` handler should be used instead. These endpoints will be shut down on January 04, 2024.
|`AudioTranscriptions::create()`|Transcribes audio into the input language.|`POST``/audio/transcriptions`|
308
-
|`AudioTranslations::create()`|Translates audio into into English.|`POST``/audio/translations`|
308
+
|`AudioTranslations::create()`|Translates audio into English.|`POST``/audio/translations`|
309
309
|`ChatCompletions::create()`|Creates a model response for the given chat conversation.|`POST``/chat/completions`|
310
310
|`Completions::create()`|Creates a completion for the provided prompt and parameters.|`POST``/completions`|
311
-
|`Edits::create()`|Creates a new edit for the provided input, instruction, and parameters.|`POST``/edits`|
311
+
|~~`Edits::create()`~~|~~Creates a new edit for the provided input, instruction, and parameters.~~|~~`POST``/edits`~~|
312
312
|`Embeddings::create()`|Creates an embedding vector representing the input text.|`POST``/embeddings`|
313
313
|`Files::list()`|Returns a list of files that belong to the user's organization.|`GET``/files`|
314
314
|`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`|
315
315
|`Files::retrieve()`|Returns information about a specific file.|`GET``/files/{file_id}`|
316
316
|`Files::delete()`|Delete a file.|`DELETE``/files/{file_id}`|
317
317
|`FilesContent::download()`|Returns the contents of the specified file|`GET``/files/{file_id}/content`|
318
-
|`FineTunes::list()`|List your organization's fine-tuning jobs|`GET``/fine-tunes`|
319
-
|`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`|
320
-
|`FineTunes::retrieve()`|Gets info about the fine-tune job.<br />Learn more about Fine-tuning|`GET``/fine-tunes/{fine_tune_id}`|
321
-
|`FineTunesCancel::cancelFineTune()`|Immediately cancel a fine-tune job.|`POST``/fine-tunes/{fine_tune_id}/cancel`|
322
-
|`FineTunesEvents::listFineTune()`|Get fine-grained status updates for a fine-tune job.|`GET``/fine-tunes/{fine_tune_id}/events`|
318
+
|~~`FineTunes::list()`~~|~~List your organization's fine-tuning jobs~~|~~`GET``/fine-tunes`~~|
319
+
|~~`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`~~|
320
+
|~~`FineTunes::retrieve()`~~|~~Gets info about the fine-tune job.<br />Learn more about fine-tuning~~|~~`GET``/fine-tunes/{fine_tune_id}`~~|
321
+
|~~`FineTunesCancel::cancelFineTune()`~~|~~Immediately cancel a fine-tune job.~~|~~`POST``/fine-tunes/{fine_tune_id}/cancel`~~|
322
+
|~~`FineTunesEvents::listFineTune()`~~|~~Get fine-grained status updates for a fine-tune job.~~|~~`GET``/fine-tunes/{fine_tune_id}/events`~~|
323
+
|`FineTuningJobs::listPaginated()`|List your organization's fine-tuning jobs|`GET``/fine_tuning/jobs`|
324
+
|`FineTuningJobs::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_tuning/jobs`|
325
+
|`FineTuningJobs::retrieve()`|Get info about a fine-tuning job.<br />Learn more about fine-tuning|`GET``/fine_tuning/jobs/{fine_tuning_job_id}`|
326
+
|`FineTuningJobsCancel::fineTuning()`|Immediately cancel a fine-tune job.|`POST``/fine_tuning/jobs/{fine_tuning_job_id}/cancel`|
327
+
|`FineTuningJobsEvents::listFineTuning()`|Get status updates for a fine-tuning job.|`GET``/fine_tuning/jobs/{fine_tuning_job_id}/events`|
323
328
|`ImagesEdits::createImage()`|Creates an edited or extended image given an original image and a prompt.|`POST``/images/edits`|
324
329
|`ImagesGenerations::create()`|Creates an image given a prompt.|`POST``/images/generations`|
325
330
|`ImagesVariations::createImage()`|Creates a variation of a given image.|`POST``/images/variations`|
326
331
|`Models::list()`|Lists the currently available models, and provides basic information about each one such as the owner and availability.|`GET``/models`|
327
332
|`Models::retrieve()`|Retrieves a model instance, providing basic information about the model such as the owner and permissioning.|`GET``/models/{model}`|
328
-
|`Models::delete()`|Delete a fine-tuned model. You must have the Owner role in your organization.|`DELETE``/models/{model}`|
333
+
|`Models::delete()`|Delete a fine-tuned model. You must have the Owner role in your organization to delete a model.|`DELETE``/models/{model}`|
329
334
|`Moderations::create()`|Classifies if text violates OpenAI's Content Policy|`POST``/moderations`|
330
335
336
+
Deprecated method(s) are listed with ~~strike-through~~ formatting. Please do not use these methods, as they will be removed in a future release.
337
+
331
338
### Making a Request
332
339
333
340
There are two ways to make a request to the nominated API Handler and API Method:
0 commit comments