Skip to content

Commit 1da125d

Browse files
chore(internal): codegen related update
1 parent 67137ac commit 1da125d

File tree

31 files changed

+117
-3
lines changed

31 files changed

+117
-3
lines changed

src/client.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,24 +1028,54 @@ export class OpenAI {
10281028

10291029
static toFile = Uploads.toFile;
10301030

1031+
/**
1032+
* Given a prompt, the model will return one or more predicted completions, and can also return the probabilities of alternative tokens at each position.
1033+
*/
10311034
completions: API.Completions = new API.Completions(this);
10321035
chat: API.Chat = new API.Chat(this);
1036+
/**
1037+
* Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.
1038+
*/
10331039
embeddings: API.Embeddings = new API.Embeddings(this);
1040+
/**
1041+
* Files are used to upload documents that can be used with features like Assistants and Fine-tuning.
1042+
*/
10341043
files: API.Files = new API.Files(this);
1044+
/**
1045+
* Given a prompt and/or an input image, the model will generate a new image.
1046+
*/
10351047
images: API.Images = new API.Images(this);
10361048
audio: API.Audio = new API.Audio(this);
1049+
/**
1050+
* Given text and/or image inputs, classifies if those inputs are potentially harmful.
1051+
*/
10371052
moderations: API.Moderations = new API.Moderations(this);
1053+
/**
1054+
* List and describe the various models available in the API.
1055+
*/
10381056
models: API.Models = new API.Models(this);
10391057
fineTuning: API.FineTuning = new API.FineTuning(this);
10401058
graders: API.Graders = new API.Graders(this);
10411059
vectorStores: API.VectorStores = new API.VectorStores(this);
10421060
webhooks: API.Webhooks = new API.Webhooks(this);
10431061
beta: API.Beta = new API.Beta(this);
1062+
/**
1063+
* Create large batches of API requests to run asynchronously.
1064+
*/
10441065
batches: API.Batches = new API.Batches(this);
1066+
/**
1067+
* Use Uploads to upload large files in multiple parts.
1068+
*/
10451069
uploads: API.Uploads = new API.Uploads(this);
10461070
responses: API.Responses = new API.Responses(this);
10471071
realtime: API.Realtime = new API.Realtime(this);
1072+
/**
1073+
* Manage conversations and conversation items.
1074+
*/
10481075
conversations: API.Conversations = new API.Conversations(this);
1076+
/**
1077+
* Manage and run evals in the OpenAI platform.
1078+
*/
10491079
evals: API.Evals = new API.Evals(this);
10501080
containers: API.Containers = new API.Containers(this);
10511081
skills: API.Skills = new API.Skills(this);

src/resources/audio/speech.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import { APIPromise } from '../../core/api-promise';
55
import { buildHeaders } from '../../internal/headers';
66
import { RequestOptions } from '../../internal/request-options';
77

8+
/**
9+
* Turn audio into text or text into audio.
10+
*/
811
export class Speech extends APIResource {
912
/**
1013
* Generates audio from the input text.

src/resources/audio/transcriptions.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ import { type Uploadable } from '../../core/uploads';
99
import { RequestOptions } from '../../internal/request-options';
1010
import { multipartFormRequestOptions } from '../../internal/uploads';
1111

12+
/**
13+
* Turn audio into text or text into audio.
14+
*/
1215
export class Transcriptions extends APIResource {
1316
/**
1417
* Transcribes audio into the input language.

src/resources/audio/translations.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ import { type Uploadable } from '../../core/uploads';
88
import { RequestOptions } from '../../internal/request-options';
99
import { multipartFormRequestOptions } from '../../internal/uploads';
1010

11+
/**
12+
* Turn audio into text or text into audio.
13+
*/
1114
export class Translations extends APIResource {
1215
/**
1316
* Translates audio into English.

src/resources/batches.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../core/paginati
88
import { RequestOptions } from '../internal/request-options';
99
import { path } from '../internal/utils/path';
1010

11+
/**
12+
* Create large batches of API requests to run asynchronously.
13+
*/
1114
export class Batches extends APIResource {
1215
/**
1316
* Creates and executes a batch from an uploaded file of requests

src/resources/beta/assistants.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ import { RequestOptions } from '../../internal/request-options';
1313
import { path } from '../../internal/utils/path';
1414
import { AssistantStream } from '../../lib/AssistantStream';
1515

16+
/**
17+
* Build Assistants that can call models and use tools.
18+
*/
1619
export class Assistants extends APIResource {
1720
/**
1821
* Create an assistant with a model and instructions.

src/resources/beta/threads/messages.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import { RequestOptions } from '../../../internal/request-options';
1010
import { path } from '../../../internal/utils/path';
1111

1212
/**
13+
* Build Assistants that can call models and use tools.
14+
*
1315
* @deprecated The Assistants API is deprecated in favor of the Responses API
1416
*/
1517
export class Messages extends APIResource {

src/resources/beta/threads/runs/runs.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ import { RunSubmitToolOutputsParamsStream } from '../../../../lib/AssistantStrea
4242
import { path } from '../../../../internal/utils/path';
4343

4444
/**
45+
* Build Assistants that can call models and use tools.
46+
*
4547
* @deprecated The Assistants API is deprecated in favor of the Responses API
4648
*/
4749
export class Runs extends APIResource {

src/resources/beta/threads/runs/steps.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import { RequestOptions } from '../../../../internal/request-options';
1010
import { path } from '../../../../internal/utils/path';
1111

1212
/**
13+
* Build Assistants that can call models and use tools.
14+
*
1315
* @deprecated The Assistants API is deprecated in favor of the Responses API
1416
*/
1517
export class Steps extends APIResource {

src/resources/beta/threads/threads.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ import { AssistantStream, ThreadCreateAndRunParamsBaseStream } from '../../../li
7373
import { path } from '../../../internal/utils/path';
7474

7575
/**
76+
* Build Assistants that can call models and use tools.
77+
*
7678
* @deprecated The Assistants API is deprecated in favor of the Responses API
7779
*/
7880
export class Threads extends APIResource {

0 commit comments

Comments
 (0)