@mastra/openai 1.0.1-alpha.9 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,390 +0,0 @@
1
- export const comments = {
2
- createChatCompletion: {
3
- comment: 'Creates a model response for the given chat conversation.',
4
- doc: 'Creates a model response for the given chat conversation.',
5
- },
6
- createCompletion: {
7
- comment: 'Creates a completion for the provided prompt and parameters.',
8
- doc: 'Creates a completion for the provided prompt and parameters.',
9
- },
10
- createImage: {
11
- comment: 'Creates an image given a prompt.',
12
- doc: 'Creates an image given a prompt.',
13
- },
14
- createImageEdit: {
15
- comment: 'Creates an edited or extended image given an original image and a prompt.',
16
- doc: 'Creates an edited or extended image given an original image and a prompt.',
17
- },
18
- createImageVariation: {
19
- comment: 'Creates a variation of a given image.',
20
- doc: 'Creates a variation of a given image.',
21
- },
22
- createEmbedding: {
23
- comment: 'Creates an embedding vector representing the input text.',
24
- doc: 'Creates an embedding vector representing the input text.',
25
- },
26
- createSpeech: {
27
- comment: 'Generates audio from the input text.',
28
- doc: 'Generates audio from the input text.',
29
- },
30
- createTranscription: {
31
- comment: 'Transcribes audio into the input language.',
32
- doc: 'Transcribes audio into the input language.',
33
- },
34
- createTranslation: {
35
- comment: 'Translates audio into English.',
36
- doc: 'Translates audio into English.',
37
- },
38
- listFiles: {
39
- comment: "Returns a list of files that belong to the user's organization.",
40
- doc: "Returns a list of files that belong to the user's organization.",
41
- },
42
- createFile: {
43
- comment:
44
- 'Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 100 GB.',
45
- doc: 'Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 100 GB.\n \n The Assistants API supports files up to 2 million tokens and of specific file types. See the [Assistants Tools guide](/docs/assistants/tools) for details.\n \n The Fine-tuning API only supports `.jsonl` files. The input also has certain required formats for fine-tuning [chat](/docs/api-reference/fine-tuning/chat-input) or [completions](/docs/api-reference/fine-tuning/completions-input) models.\n \n The Batch API only supports `.jsonl` files up to 100 MB in size. The input also has a specific required [format](/docs/api-reference/batch/request-input).\n \n Please [contact us](https://help.openai.com/) if you need to increase these storage limits.',
46
- },
47
- deleteFile: {
48
- comment: 'Delete a file.',
49
- doc: 'Delete a file.',
50
- },
51
- retrieveFile: {
52
- comment: 'Returns information about a specific file.',
53
- doc: 'Returns information about a specific file.',
54
- },
55
- downloadFile: {
56
- comment: 'Returns the contents of the specified file.',
57
- doc: 'Returns the contents of the specified file.',
58
- },
59
- createUpload: {
60
- comment:
61
- 'Creates an intermediate [Upload](/docs/api-reference/uploads/object) object that you can add [Parts](/docs/api-reference/uploads/part-object) to. Currently, an Upload can accept at most 8 GB in total and expires after an hour after you create it.',
62
- doc: 'Creates an intermediate [Upload](/docs/api-reference/uploads/object) object that you can add [Parts](/docs/api-reference/uploads/part-object) to. Currently, an Upload can accept at most 8 GB in total and expires after an hour after you create it.\n \n Once you complete the Upload, we will create a [File](/docs/api-reference/files/object) object that contains all the parts you uploaded. This File is usable in the rest of our platform as a regular File object.\n \n For certain `purpose`s, the correct `mime_type` must be specified. Please refer to documentation for the supported MIME types for your use case:\n - [Assistants](/docs/assistants/tools/file-search/supported-files)\n \n For guidance on the proper filename extensions for each purpose, please follow the documentation on [creating a File](/docs/api-reference/files/create).',
63
- },
64
- addUploadPart: {
65
- comment:
66
- 'Adds a [Part](/docs/api-reference/uploads/part-object) to an [Upload](/docs/api-reference/uploads/object) object. A Part represents a chunk of bytes from the file you are trying to upload.',
67
- doc: 'Adds a [Part](/docs/api-reference/uploads/part-object) to an [Upload](/docs/api-reference/uploads/object) object. A Part represents a chunk of bytes from the file you are trying to upload.\n \n Each Part can be at most 64 MB, and you can add Parts until you hit the Upload maximum of 8 GB.\n \n It is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you [complete the Upload](/docs/api-reference/uploads/complete).',
68
- },
69
- completeUpload: {
70
- comment: 'Completes the [Upload](/docs/api-reference/uploads/object).',
71
- doc: 'Completes the [Upload](/docs/api-reference/uploads/object).\n \n Within the returned Upload object, there is a nested [File](/docs/api-reference/files/object) object that is ready to use in the rest of the platform.\n \n You can specify the order of the Parts by passing in an ordered list of the Part IDs.\n \n The number of bytes uploaded upon completion must match the number of bytes initially specified when creating the Upload object. No Parts may be added after an Upload is completed.',
72
- },
73
- cancelUpload: {
74
- comment: 'Cancels the Upload. No Parts may be added after an Upload is cancelled.',
75
- doc: 'Cancels the Upload. No Parts may be added after an Upload is cancelled.',
76
- },
77
- createFineTuningJob: {
78
- comment: 'Creates a fine-tuning job which begins the process of creating a new model from a given dataset.',
79
- doc: 'Creates a fine-tuning job which begins the process of creating a new model from a given dataset.\n \n Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.\n \n [Learn more about fine-tuning](/docs/guides/fine-tuning)',
80
- },
81
- listPaginatedFineTuningJobs: {
82
- comment: "List your organization's fine-tuning jobs",
83
- doc: "List your organization's fine-tuning jobs",
84
- },
85
- retrieveFineTuningJob: {
86
- comment: 'Get info about a fine-tuning job.',
87
- doc: 'Get info about a fine-tuning job.\n \n [Learn more about fine-tuning](/docs/guides/fine-tuning)',
88
- },
89
- listFineTuningEvents: {
90
- comment: 'Get status updates for a fine-tuning job.',
91
- doc: 'Get status updates for a fine-tuning job.',
92
- },
93
- cancelFineTuningJob: {
94
- comment: 'Immediately cancel a fine-tune job.',
95
- doc: 'Immediately cancel a fine-tune job.',
96
- },
97
- listFineTuningJobCheckpoints: {
98
- comment: 'List checkpoints for a fine-tuning job.',
99
- doc: 'List checkpoints for a fine-tuning job.',
100
- },
101
- listModels: {
102
- comment:
103
- 'Lists the currently available models, and provides basic information about each one such as the owner and availability.',
104
- doc: 'Lists the currently available models, and provides basic information about each one such as the owner and availability.',
105
- },
106
- retrieveModel: {
107
- comment:
108
- 'Retrieves a model instance, providing basic information about the model such as the owner and permissioning.',
109
- doc: 'Retrieves a model instance, providing basic information about the model such as the owner and permissioning.',
110
- },
111
- deleteModel: {
112
- comment: 'Delete a fine-tuned model. You must have the Owner role in your organization to delete a model.',
113
- doc: 'Delete a fine-tuned model. You must have the Owner role in your organization to delete a model.',
114
- },
115
- createModeration: {
116
- comment: 'Classifies if text is potentially harmful.',
117
- doc: 'Classifies if text is potentially harmful.',
118
- },
119
- listAssistants: {
120
- comment: 'Returns a list of assistants.',
121
- doc: 'Returns a list of assistants.',
122
- },
123
- createAssistant: {
124
- comment: 'Create an assistant with a model and instructions.',
125
- doc: 'Create an assistant with a model and instructions.',
126
- },
127
- getAssistant: {
128
- comment: 'Retrieves an assistant.',
129
- doc: 'Retrieves an assistant.',
130
- },
131
- modifyAssistant: {
132
- comment: 'Modifies an assistant.',
133
- doc: 'Modifies an assistant.',
134
- },
135
- deleteAssistant: {
136
- comment: 'Delete an assistant.',
137
- doc: 'Delete an assistant.',
138
- },
139
- createThread: {
140
- comment: 'Create a thread.',
141
- doc: 'Create a thread.',
142
- },
143
- getThread: {
144
- comment: 'Retrieves a thread.',
145
- doc: 'Retrieves a thread.',
146
- },
147
- modifyThread: {
148
- comment: 'Modifies a thread.',
149
- doc: 'Modifies a thread.',
150
- },
151
- deleteThread: {
152
- comment: 'Delete a thread.',
153
- doc: 'Delete a thread.',
154
- },
155
- listMessages: {
156
- comment: 'Returns a list of messages for a given thread.',
157
- doc: 'Returns a list of messages for a given thread.',
158
- },
159
- createMessage: {
160
- comment: 'Create a message.',
161
- doc: 'Create a message.',
162
- },
163
- getMessage: {
164
- comment: 'Retrieve a message.',
165
- doc: 'Retrieve a message.',
166
- },
167
- modifyMessage: {
168
- comment: 'Modifies a message.',
169
- doc: 'Modifies a message.',
170
- },
171
- deleteMessage: {
172
- comment: 'Deletes a message.',
173
- doc: 'Deletes a message.',
174
- },
175
- createThreadAndRun: {
176
- comment: 'Create a thread and run it in one request.',
177
- doc: 'Create a thread and run it in one request.',
178
- },
179
- listRuns: {
180
- comment: 'Returns a list of runs belonging to a thread.',
181
- doc: 'Returns a list of runs belonging to a thread.',
182
- },
183
- createRun: {
184
- comment: 'Create a run.',
185
- doc: 'Create a run.',
186
- },
187
- getRun: {
188
- comment: 'Retrieves a run.',
189
- doc: 'Retrieves a run.',
190
- },
191
- modifyRun: {
192
- comment: 'Modifies a run.',
193
- doc: 'Modifies a run.',
194
- },
195
- submitToolOuputsToRun: {
196
- comment:
197
- 'When a run has the `status: "requires_action"` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they\'re all completed. All outputs must be submitted in a single request.',
198
- doc: 'When a run has the `status: "requires_action"` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they\'re all completed. All outputs must be submitted in a single request.',
199
- },
200
- cancelRun: {
201
- comment: 'Cancels a run that is `in_progress`.',
202
- doc: 'Cancels a run that is `in_progress`.',
203
- },
204
- listRunSteps: {
205
- comment: 'Returns a list of run steps belonging to a run.',
206
- doc: 'Returns a list of run steps belonging to a run.',
207
- },
208
- getRunStep: {
209
- comment: 'Retrieves a run step.',
210
- doc: 'Retrieves a run step.',
211
- },
212
- listVectorStores: {
213
- comment: 'Returns a list of vector stores.',
214
- doc: 'Returns a list of vector stores.',
215
- },
216
- createVectorStore: {
217
- comment: 'Create a vector store.',
218
- doc: 'Create a vector store.',
219
- },
220
- getVectorStore: {
221
- comment: 'Retrieves a vector store.',
222
- doc: 'Retrieves a vector store.',
223
- },
224
- modifyVectorStore: {
225
- comment: 'Modifies a vector store.',
226
- doc: 'Modifies a vector store.',
227
- },
228
- deleteVectorStore: {
229
- comment: 'Delete a vector store.',
230
- doc: 'Delete a vector store.',
231
- },
232
- listVectorStoreFiles: {
233
- comment: 'Returns a list of vector store files.',
234
- doc: 'Returns a list of vector store files.',
235
- },
236
- createVectorStoreFile: {
237
- comment:
238
- 'Create a vector store file by attaching a [File](/docs/api-reference/files) to a [vector store](/docs/api-reference/vector-stores/object).',
239
- doc: 'Create a vector store file by attaching a [File](/docs/api-reference/files) to a [vector store](/docs/api-reference/vector-stores/object).',
240
- },
241
- getVectorStoreFile: {
242
- comment: 'Retrieves a vector store file.',
243
- doc: 'Retrieves a vector store file.',
244
- },
245
- deleteVectorStoreFile: {
246
- comment:
247
- 'Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the [delete file](/docs/api-reference/files/delete) endpoint.',
248
- doc: 'Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the [delete file](/docs/api-reference/files/delete) endpoint.',
249
- },
250
- createVectorStoreFileBatch: {
251
- comment: 'Create a vector store file batch.',
252
- doc: 'Create a vector store file batch.',
253
- },
254
- getVectorStoreFileBatch: {
255
- comment: 'Retrieves a vector store file batch.',
256
- doc: 'Retrieves a vector store file batch.',
257
- },
258
- cancelVectorStoreFileBatch: {
259
- comment:
260
- 'Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible.',
261
- doc: 'Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible.',
262
- },
263
- listFilesInVectorStoreBatch: {
264
- comment: 'Returns a list of vector store files in a batch.',
265
- doc: 'Returns a list of vector store files in a batch.',
266
- },
267
- createBatch: {
268
- comment: 'Creates and executes a batch from an uploaded file of requests',
269
- doc: 'Creates and executes a batch from an uploaded file of requests',
270
- },
271
- listBatches: {
272
- comment: "List your organization's batches.",
273
- doc: "List your organization's batches.",
274
- },
275
- retrieveBatch: {
276
- comment: 'Retrieves a batch.',
277
- doc: 'Retrieves a batch.',
278
- },
279
- cancelBatch: {
280
- comment:
281
- 'Cancels an in-progress batch. The batch will be in status `cancelling` for up to 10 minutes, before changing to `cancelled`, where it will have partial results (if any) available in the output file.',
282
- doc: 'Cancels an in-progress batch. The batch will be in status `cancelling` for up to 10 minutes, before changing to `cancelled`, where it will have partial results (if any) available in the output file.',
283
- },
284
- listAuditLogs: {
285
- comment: 'List user actions and configuration changes within this organization.',
286
- doc: 'List user actions and configuration changes within this organization.',
287
- },
288
- listInvites: {
289
- comment: 'Returns a list of invites in the organization.',
290
- doc: 'Returns a list of invites in the organization.',
291
- },
292
- inviteUser: {
293
- comment:
294
- 'Create an invite for a user to the organization. The invite must be accepted by the user before they have access to the organization.',
295
- doc: 'Create an invite for a user to the organization. The invite must be accepted by the user before they have access to the organization.',
296
- },
297
- retrieveInvite: {
298
- comment: 'Retrieves an invite.',
299
- doc: 'Retrieves an invite.',
300
- },
301
- deleteInvite: {
302
- comment: 'Delete an invite. If the invite has already been accepted, it cannot be deleted.',
303
- doc: 'Delete an invite. If the invite has already been accepted, it cannot be deleted.',
304
- },
305
- listUsers: {
306
- comment: 'Lists all of the users in the organization.',
307
- doc: 'Lists all of the users in the organization.',
308
- },
309
- retrieveUser: {
310
- comment: 'Retrieves a user by their identifier.',
311
- doc: 'Retrieves a user by their identifier.',
312
- },
313
- modifyUser: {
314
- comment: "Modifies a user's role in the organization.",
315
- doc: "Modifies a user's role in the organization.",
316
- },
317
- deleteUser: {
318
- comment: 'Deletes a user from the organization.',
319
- doc: 'Deletes a user from the organization.',
320
- },
321
- listProjects: {
322
- comment: 'Returns a list of projects.',
323
- doc: 'Returns a list of projects.',
324
- },
325
- createProject: {
326
- comment: 'Create a new project in the organization. Projects can be created and archived, but cannot be deleted.',
327
- doc: 'Create a new project in the organization. Projects can be created and archived, but cannot be deleted.',
328
- },
329
- retrieveProject: {
330
- comment: 'Retrieves a project.',
331
- doc: 'Retrieves a project.',
332
- },
333
- modifyProject: {
334
- comment: 'Modifies a project in the organization.',
335
- doc: 'Modifies a project in the organization.',
336
- },
337
- archiveProject: {
338
- comment: 'Archives a project in the organization. Archived projects cannot be used or updated.',
339
- doc: 'Archives a project in the organization. Archived projects cannot be used or updated.',
340
- },
341
- listProjectUsers: {
342
- comment: 'Returns a list of users in the project.',
343
- doc: 'Returns a list of users in the project.',
344
- },
345
- createProjectUser: {
346
- comment: 'Adds a user to the project. Users must already be members of the organization to be added to a project.',
347
- doc: 'Adds a user to the project. Users must already be members of the organization to be added to a project.',
348
- },
349
- retrieveProjectUser: {
350
- comment: 'Retrieves a user in the project.',
351
- doc: 'Retrieves a user in the project.',
352
- },
353
- modifyProjectUser: {
354
- comment: "Modifies a user's role in the project.",
355
- doc: "Modifies a user's role in the project.",
356
- },
357
- deleteProjectUser: {
358
- comment: 'Deletes a user from the project.',
359
- doc: 'Deletes a user from the project.',
360
- },
361
- listProjectServiceAccounts: {
362
- comment: 'Returns a list of service accounts in the project.',
363
- doc: 'Returns a list of service accounts in the project.',
364
- },
365
- createProjectServiceAccount: {
366
- comment:
367
- 'Creates a new service account in the project. This also returns an unredacted API key for the service account.',
368
- doc: 'Creates a new service account in the project. This also returns an unredacted API key for the service account.',
369
- },
370
- retrieveProjectServiceAccount: {
371
- comment: 'Retrieves a service account in the project.',
372
- doc: 'Retrieves a service account in the project.',
373
- },
374
- deleteProjectServiceAccount: {
375
- comment: 'Deletes a service account from the project.',
376
- doc: 'Deletes a service account from the project.',
377
- },
378
- listProjectApiKeys: {
379
- comment: 'Returns a list of API keys in the project.',
380
- doc: 'Returns a list of API keys in the project.',
381
- },
382
- retrieveProjectApiKey: {
383
- comment: 'Retrieves an API key in the project.',
384
- doc: 'Retrieves an API key in the project.',
385
- },
386
- deleteProjectApiKey: {
387
- comment: 'Deletes an API key from the project.',
388
- doc: 'Deletes an API key from the project.',
389
- },
390
- };