|
4 | 4 |
|
5 | 5 | The **Tectalic OpenAI REST API Client** is a package that provides a convenient and straightforward way to interact with the **OpenAI API** from your PHP application. |
6 | 6 |
|
7 | | -Supports **ChatGPT**, **GPT-4**, **GPT-3.5**, **GPT-3**, **Codex**, **DALL·E**, **Whisper**, **Embeddings** and **Moderation** models, with fully typed Data Transfer Objects (DTOs) for all requests and responses and IDE autocomplete support. |
| 7 | +Supports **ChatGPT**, **GPT-4**, **GPT-3.5**, **GPT-3**, **Codex**, **DALL·E**, **Whisper**, **Fine-Tuning**, **Embeddings** and **Moderation** models, with fully typed Data Transfer Objects (DTOs) for all requests and responses and IDE autocomplete support. |
8 | 8 |
|
9 | 9 | More information is available from [https://tectalic.com/apis/openai](https://tectalic.com/apis/openai). |
10 | 10 |
|
@@ -291,43 +291,50 @@ In the **Usage** code above, customize the `Authentication` constructor to your |
291 | 291 |
|
292 | 292 | The primary class you will interact with is the `Client` class (`Tectalic\OpenAi\Client`). |
293 | 293 |
|
294 | | -This `Client` class also contains the helper methods that let you quickly access the 16 API Handlers. |
| 294 | +This `Client` class also contains the helper methods that let you quickly access the 19 API Handlers. |
295 | 295 |
|
296 | 296 | Please see below for a complete list of supported handlers and methods. |
297 | 297 |
|
298 | 298 | ### Supported API Handlers and Methods |
299 | 299 |
|
300 | | -This package supports 23 API Methods, which are grouped into 16 API Handlers. |
| 300 | +This package supports 28 API Methods, which are grouped into 19 API Handlers. |
301 | 301 |
|
302 | 302 | See the table below for a full list of API Handlers and Methods. |
303 | 303 |
|
304 | 304 |
|
305 | 305 | | API Handler Class and Method Name | Description | API Verb and URL | |
306 | 306 | | --------------------------------- | ----------- | ---------------- | |
307 | 307 | |`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 | | -|`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`| |
| 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`~~| |
| 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