openai 4.76.3 → 4.77.0
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.
- package/CHANGELOG.md +14 -0
- package/core.d.ts +1 -1
- package/core.d.ts.map +1 -1
- package/core.js +2 -2
- package/core.js.map +1 -1
- package/core.mjs +2 -2
- package/core.mjs.map +1 -1
- package/index.d.mts +2 -2
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/chat/chat.d.ts +3 -3
- package/resources/chat/chat.d.ts.map +1 -1
- package/resources/chat/chat.js.map +1 -1
- package/resources/chat/chat.mjs.map +1 -1
- package/resources/chat/completions.d.ts +74 -18
- package/resources/chat/completions.d.ts.map +1 -1
- package/resources/chat/completions.js.map +1 -1
- package/resources/chat/completions.mjs.map +1 -1
- package/resources/chat/index.d.ts +1 -1
- package/resources/chat/index.d.ts.map +1 -1
- package/resources/chat/index.js.map +1 -1
- package/resources/chat/index.mjs.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.ts +227 -13
- package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.js.map +1 -1
- package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
- package/src/core.ts +2 -2
- package/src/index.ts +4 -0
- package/src/resources/chat/chat.ts +9 -2
- package/src/resources/chat/completions.ts +80 -16
- package/src/resources/chat/index.ts +2 -0
- package/src/resources/fine-tuning/jobs/jobs.ts +257 -13
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -69,9 +69,8 @@ export interface FineTuningJob {
|
|
|
69
69
|
*/
|
|
70
70
|
finished_at: number | null;
|
|
71
71
|
/**
|
|
72
|
-
* The hyperparameters used for the fine-tuning job.
|
|
73
|
-
*
|
|
74
|
-
* more details.
|
|
72
|
+
* The hyperparameters used for the fine-tuning job. This value will only be
|
|
73
|
+
* returned when running `supervised` jobs.
|
|
75
74
|
*/
|
|
76
75
|
hyperparameters: FineTuningJob.Hyperparameters;
|
|
77
76
|
/**
|
|
@@ -126,6 +125,10 @@ export interface FineTuningJob {
|
|
|
126
125
|
* A list of integrations to enable for this fine-tuning job.
|
|
127
126
|
*/
|
|
128
127
|
integrations?: Array<FineTuningJobWandbIntegrationObject> | null;
|
|
128
|
+
/**
|
|
129
|
+
* The method used for fine-tuning.
|
|
130
|
+
*/
|
|
131
|
+
method?: FineTuningJob.Method;
|
|
129
132
|
}
|
|
130
133
|
export declare namespace FineTuningJob {
|
|
131
134
|
/**
|
|
@@ -148,29 +151,145 @@ export declare namespace FineTuningJob {
|
|
|
148
151
|
param: string | null;
|
|
149
152
|
}
|
|
150
153
|
/**
|
|
151
|
-
* The hyperparameters used for the fine-tuning job.
|
|
152
|
-
*
|
|
153
|
-
* more details.
|
|
154
|
+
* The hyperparameters used for the fine-tuning job. This value will only be
|
|
155
|
+
* returned when running `supervised` jobs.
|
|
154
156
|
*/
|
|
155
157
|
interface Hyperparameters {
|
|
158
|
+
/**
|
|
159
|
+
* Number of examples in each batch. A larger batch size means that model
|
|
160
|
+
* parameters are updated less frequently, but with lower variance.
|
|
161
|
+
*/
|
|
162
|
+
batch_size?: 'auto' | number;
|
|
163
|
+
/**
|
|
164
|
+
* Scaling factor for the learning rate. A smaller learning rate may be useful to
|
|
165
|
+
* avoid overfitting.
|
|
166
|
+
*/
|
|
167
|
+
learning_rate_multiplier?: 'auto' | number;
|
|
156
168
|
/**
|
|
157
169
|
* The number of epochs to train the model for. An epoch refers to one full cycle
|
|
158
|
-
* through the training dataset.
|
|
159
|
-
|
|
160
|
-
|
|
170
|
+
* through the training dataset.
|
|
171
|
+
*/
|
|
172
|
+
n_epochs?: 'auto' | number;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* The method used for fine-tuning.
|
|
176
|
+
*/
|
|
177
|
+
interface Method {
|
|
178
|
+
/**
|
|
179
|
+
* Configuration for the DPO fine-tuning method.
|
|
180
|
+
*/
|
|
181
|
+
dpo?: Method.Dpo;
|
|
182
|
+
/**
|
|
183
|
+
* Configuration for the supervised fine-tuning method.
|
|
161
184
|
*/
|
|
162
|
-
|
|
185
|
+
supervised?: Method.Supervised;
|
|
186
|
+
/**
|
|
187
|
+
* The type of method. Is either `supervised` or `dpo`.
|
|
188
|
+
*/
|
|
189
|
+
type?: 'supervised' | 'dpo';
|
|
190
|
+
}
|
|
191
|
+
namespace Method {
|
|
192
|
+
/**
|
|
193
|
+
* Configuration for the DPO fine-tuning method.
|
|
194
|
+
*/
|
|
195
|
+
interface Dpo {
|
|
196
|
+
/**
|
|
197
|
+
* The hyperparameters used for the fine-tuning job.
|
|
198
|
+
*/
|
|
199
|
+
hyperparameters?: Dpo.Hyperparameters;
|
|
200
|
+
}
|
|
201
|
+
namespace Dpo {
|
|
202
|
+
/**
|
|
203
|
+
* The hyperparameters used for the fine-tuning job.
|
|
204
|
+
*/
|
|
205
|
+
interface Hyperparameters {
|
|
206
|
+
/**
|
|
207
|
+
* Number of examples in each batch. A larger batch size means that model
|
|
208
|
+
* parameters are updated less frequently, but with lower variance.
|
|
209
|
+
*/
|
|
210
|
+
batch_size?: 'auto' | number;
|
|
211
|
+
/**
|
|
212
|
+
* The beta value for the DPO method. A higher beta value will increase the weight
|
|
213
|
+
* of the penalty between the policy and reference model.
|
|
214
|
+
*/
|
|
215
|
+
beta?: 'auto' | number;
|
|
216
|
+
/**
|
|
217
|
+
* Scaling factor for the learning rate. A smaller learning rate may be useful to
|
|
218
|
+
* avoid overfitting.
|
|
219
|
+
*/
|
|
220
|
+
learning_rate_multiplier?: 'auto' | number;
|
|
221
|
+
/**
|
|
222
|
+
* The number of epochs to train the model for. An epoch refers to one full cycle
|
|
223
|
+
* through the training dataset.
|
|
224
|
+
*/
|
|
225
|
+
n_epochs?: 'auto' | number;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Configuration for the supervised fine-tuning method.
|
|
230
|
+
*/
|
|
231
|
+
interface Supervised {
|
|
232
|
+
/**
|
|
233
|
+
* The hyperparameters used for the fine-tuning job.
|
|
234
|
+
*/
|
|
235
|
+
hyperparameters?: Supervised.Hyperparameters;
|
|
236
|
+
}
|
|
237
|
+
namespace Supervised {
|
|
238
|
+
/**
|
|
239
|
+
* The hyperparameters used for the fine-tuning job.
|
|
240
|
+
*/
|
|
241
|
+
interface Hyperparameters {
|
|
242
|
+
/**
|
|
243
|
+
* Number of examples in each batch. A larger batch size means that model
|
|
244
|
+
* parameters are updated less frequently, but with lower variance.
|
|
245
|
+
*/
|
|
246
|
+
batch_size?: 'auto' | number;
|
|
247
|
+
/**
|
|
248
|
+
* Scaling factor for the learning rate. A smaller learning rate may be useful to
|
|
249
|
+
* avoid overfitting.
|
|
250
|
+
*/
|
|
251
|
+
learning_rate_multiplier?: 'auto' | number;
|
|
252
|
+
/**
|
|
253
|
+
* The number of epochs to train the model for. An epoch refers to one full cycle
|
|
254
|
+
* through the training dataset.
|
|
255
|
+
*/
|
|
256
|
+
n_epochs?: 'auto' | number;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
163
259
|
}
|
|
164
260
|
}
|
|
165
261
|
/**
|
|
166
262
|
* Fine-tuning job event object
|
|
167
263
|
*/
|
|
168
264
|
export interface FineTuningJobEvent {
|
|
265
|
+
/**
|
|
266
|
+
* The object identifier.
|
|
267
|
+
*/
|
|
169
268
|
id: string;
|
|
269
|
+
/**
|
|
270
|
+
* The Unix timestamp (in seconds) for when the fine-tuning job was created.
|
|
271
|
+
*/
|
|
170
272
|
created_at: number;
|
|
273
|
+
/**
|
|
274
|
+
* The log level of the event.
|
|
275
|
+
*/
|
|
171
276
|
level: 'info' | 'warn' | 'error';
|
|
277
|
+
/**
|
|
278
|
+
* The message of the event.
|
|
279
|
+
*/
|
|
172
280
|
message: string;
|
|
281
|
+
/**
|
|
282
|
+
* The object type, which is always "fine_tuning.job.event".
|
|
283
|
+
*/
|
|
173
284
|
object: 'fine_tuning.job.event';
|
|
285
|
+
/**
|
|
286
|
+
* The data associated with the event.
|
|
287
|
+
*/
|
|
288
|
+
data?: unknown;
|
|
289
|
+
/**
|
|
290
|
+
* The type of event.
|
|
291
|
+
*/
|
|
292
|
+
type?: 'message' | 'metrics';
|
|
174
293
|
}
|
|
175
294
|
export type FineTuningJobIntegration = FineTuningJobWandbIntegrationObject;
|
|
176
295
|
/**
|
|
@@ -231,8 +350,10 @@ export interface JobCreateParams {
|
|
|
231
350
|
* your file with the purpose `fine-tune`.
|
|
232
351
|
*
|
|
233
352
|
* The contents of the file should differ depending on if the model uses the
|
|
234
|
-
* [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input)
|
|
353
|
+
* [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input),
|
|
235
354
|
* [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input)
|
|
355
|
+
* format, or if the fine-tuning method uses the
|
|
356
|
+
* [preference](https://platform.openai.com/docs/api-reference/fine-tuning/preference-input)
|
|
236
357
|
* format.
|
|
237
358
|
*
|
|
238
359
|
* See the [fine-tuning guide](https://platform.openai.com/docs/guides/fine-tuning)
|
|
@@ -240,13 +361,18 @@ export interface JobCreateParams {
|
|
|
240
361
|
*/
|
|
241
362
|
training_file: string;
|
|
242
363
|
/**
|
|
243
|
-
* The hyperparameters used for the fine-tuning job.
|
|
364
|
+
* The hyperparameters used for the fine-tuning job. This value is now deprecated
|
|
365
|
+
* in favor of `method`, and should be passed in under the `method` parameter.
|
|
244
366
|
*/
|
|
245
367
|
hyperparameters?: JobCreateParams.Hyperparameters;
|
|
246
368
|
/**
|
|
247
369
|
* A list of integrations to enable for your fine-tuning job.
|
|
248
370
|
*/
|
|
249
371
|
integrations?: Array<JobCreateParams.Integration> | null;
|
|
372
|
+
/**
|
|
373
|
+
* The method used for fine-tuning.
|
|
374
|
+
*/
|
|
375
|
+
method?: JobCreateParams.Method;
|
|
250
376
|
/**
|
|
251
377
|
* The seed controls the reproducibility of the job. Passing in the same seed and
|
|
252
378
|
* job parameters should produce the same results, but may differ in rare cases. If
|
|
@@ -279,7 +405,9 @@ export interface JobCreateParams {
|
|
|
279
405
|
}
|
|
280
406
|
export declare namespace JobCreateParams {
|
|
281
407
|
/**
|
|
282
|
-
* The hyperparameters used for the fine-tuning job.
|
|
408
|
+
* @deprecated: The hyperparameters used for the fine-tuning job. This value is now
|
|
409
|
+
* deprecated in favor of `method`, and should be passed in under the `method`
|
|
410
|
+
* parameter.
|
|
283
411
|
*/
|
|
284
412
|
interface Hyperparameters {
|
|
285
413
|
/**
|
|
@@ -343,6 +471,92 @@ export declare namespace JobCreateParams {
|
|
|
343
471
|
tags?: Array<string>;
|
|
344
472
|
}
|
|
345
473
|
}
|
|
474
|
+
/**
|
|
475
|
+
* The method used for fine-tuning.
|
|
476
|
+
*/
|
|
477
|
+
interface Method {
|
|
478
|
+
/**
|
|
479
|
+
* Configuration for the DPO fine-tuning method.
|
|
480
|
+
*/
|
|
481
|
+
dpo?: Method.Dpo;
|
|
482
|
+
/**
|
|
483
|
+
* Configuration for the supervised fine-tuning method.
|
|
484
|
+
*/
|
|
485
|
+
supervised?: Method.Supervised;
|
|
486
|
+
/**
|
|
487
|
+
* The type of method. Is either `supervised` or `dpo`.
|
|
488
|
+
*/
|
|
489
|
+
type?: 'supervised' | 'dpo';
|
|
490
|
+
}
|
|
491
|
+
namespace Method {
|
|
492
|
+
/**
|
|
493
|
+
* Configuration for the DPO fine-tuning method.
|
|
494
|
+
*/
|
|
495
|
+
interface Dpo {
|
|
496
|
+
/**
|
|
497
|
+
* The hyperparameters used for the fine-tuning job.
|
|
498
|
+
*/
|
|
499
|
+
hyperparameters?: Dpo.Hyperparameters;
|
|
500
|
+
}
|
|
501
|
+
namespace Dpo {
|
|
502
|
+
/**
|
|
503
|
+
* The hyperparameters used for the fine-tuning job.
|
|
504
|
+
*/
|
|
505
|
+
interface Hyperparameters {
|
|
506
|
+
/**
|
|
507
|
+
* Number of examples in each batch. A larger batch size means that model
|
|
508
|
+
* parameters are updated less frequently, but with lower variance.
|
|
509
|
+
*/
|
|
510
|
+
batch_size?: 'auto' | number;
|
|
511
|
+
/**
|
|
512
|
+
* The beta value for the DPO method. A higher beta value will increase the weight
|
|
513
|
+
* of the penalty between the policy and reference model.
|
|
514
|
+
*/
|
|
515
|
+
beta?: 'auto' | number;
|
|
516
|
+
/**
|
|
517
|
+
* Scaling factor for the learning rate. A smaller learning rate may be useful to
|
|
518
|
+
* avoid overfitting.
|
|
519
|
+
*/
|
|
520
|
+
learning_rate_multiplier?: 'auto' | number;
|
|
521
|
+
/**
|
|
522
|
+
* The number of epochs to train the model for. An epoch refers to one full cycle
|
|
523
|
+
* through the training dataset.
|
|
524
|
+
*/
|
|
525
|
+
n_epochs?: 'auto' | number;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* Configuration for the supervised fine-tuning method.
|
|
530
|
+
*/
|
|
531
|
+
interface Supervised {
|
|
532
|
+
/**
|
|
533
|
+
* The hyperparameters used for the fine-tuning job.
|
|
534
|
+
*/
|
|
535
|
+
hyperparameters?: Supervised.Hyperparameters;
|
|
536
|
+
}
|
|
537
|
+
namespace Supervised {
|
|
538
|
+
/**
|
|
539
|
+
* The hyperparameters used for the fine-tuning job.
|
|
540
|
+
*/
|
|
541
|
+
interface Hyperparameters {
|
|
542
|
+
/**
|
|
543
|
+
* Number of examples in each batch. A larger batch size means that model
|
|
544
|
+
* parameters are updated less frequently, but with lower variance.
|
|
545
|
+
*/
|
|
546
|
+
batch_size?: 'auto' | number;
|
|
547
|
+
/**
|
|
548
|
+
* Scaling factor for the learning rate. A smaller learning rate may be useful to
|
|
549
|
+
* avoid overfitting.
|
|
550
|
+
*/
|
|
551
|
+
learning_rate_multiplier?: 'auto' | number;
|
|
552
|
+
/**
|
|
553
|
+
* The number of epochs to train the model for. An epoch refers to one full cycle
|
|
554
|
+
* through the training dataset.
|
|
555
|
+
*/
|
|
556
|
+
n_epochs?: 'auto' | number;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
}
|
|
346
560
|
}
|
|
347
561
|
export interface JobListParams extends CursorPageParams {
|
|
348
562
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../../src/resources/fine-tuning/jobs/jobs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,cAAc,MAAM,eAAe,CAAC;AAChD,OAAO,EACL,oBAAoB,EACpB,WAAW,EACX,uBAAuB,EACvB,4BAA4B,EAC7B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAExE,qBAAa,IAAK,SAAQ,WAAW;IACnC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IAEvF;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;IAI5F;;;;OAIG;IACH,QAAQ,CAAC,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;IAIhG;;OAEG;IACH,IAAI,CACF,KAAK,CAAC,EAAE,aAAa,EACrB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,WAAW,CAAC,kBAAkB,EAAE,aAAa,CAAC;IACtD,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,kBAAkB,EAAE,aAAa,CAAC;IAWxF;;OAEG;IACH,MAAM,CAAC,eAAe,EAAE,MAA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,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,eAAuB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,eAAe,SAAS,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAcD,UAAU,CACR,eAAuB,EACvB,QAAmD,EAAE,EACrD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB,eAAe,SAAS,EAAE,uBAAuB,EAAE;YACrG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,kBAAmB,SAAQ,UAAyB;CAAG;AAEpE,MAAM,OAAO,uBAAwB,SAAQ,UAA8B;CAAG;AA2lB9E,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;AAC7C,IAAI,CAAC,uBAAuB,GAAG,uBAAuB,CAAC;AACvD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;AAC/B,IAAI,CAAC,4BAA4B,GAAG,4BAA4B,CAAC"}
|
package/src/core.ts
CHANGED
|
@@ -198,7 +198,7 @@ export abstract class APIClient {
|
|
|
198
198
|
maxRetries = 2,
|
|
199
199
|
timeout = 600000, // 10 minutes
|
|
200
200
|
httpAgent,
|
|
201
|
-
fetch:
|
|
201
|
+
fetch: overriddenFetch,
|
|
202
202
|
}: {
|
|
203
203
|
baseURL: string;
|
|
204
204
|
maxRetries?: number | undefined;
|
|
@@ -211,7 +211,7 @@ export abstract class APIClient {
|
|
|
211
211
|
this.timeout = validatePositiveInteger('timeout', timeout);
|
|
212
212
|
this.httpAgent = httpAgent;
|
|
213
213
|
|
|
214
|
-
this.fetch =
|
|
214
|
+
this.fetch = overriddenFetch ?? fetch;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
protected authHeaders(opts: FinalRequestOptions): Headers {
|
package/src/index.ts
CHANGED
|
@@ -80,6 +80,7 @@ import {
|
|
|
80
80
|
ChatCompletionCreateParams,
|
|
81
81
|
ChatCompletionCreateParamsNonStreaming,
|
|
82
82
|
ChatCompletionCreateParamsStreaming,
|
|
83
|
+
ChatCompletionDeveloperMessageParam,
|
|
83
84
|
ChatCompletionFunctionCallOption,
|
|
84
85
|
ChatCompletionFunctionMessageParam,
|
|
85
86
|
ChatCompletionMessage,
|
|
@@ -88,6 +89,7 @@ import {
|
|
|
88
89
|
ChatCompletionModality,
|
|
89
90
|
ChatCompletionNamedToolChoice,
|
|
90
91
|
ChatCompletionPredictionContent,
|
|
92
|
+
ChatCompletionReasoningEffort,
|
|
91
93
|
ChatCompletionRole,
|
|
92
94
|
ChatCompletionStreamOptions,
|
|
93
95
|
ChatCompletionSystemMessageParam,
|
|
@@ -353,6 +355,7 @@ export declare namespace OpenAI {
|
|
|
353
355
|
type ChatCompletionContentPartInputAudio as ChatCompletionContentPartInputAudio,
|
|
354
356
|
type ChatCompletionContentPartRefusal as ChatCompletionContentPartRefusal,
|
|
355
357
|
type ChatCompletionContentPartText as ChatCompletionContentPartText,
|
|
358
|
+
type ChatCompletionDeveloperMessageParam as ChatCompletionDeveloperMessageParam,
|
|
356
359
|
type ChatCompletionFunctionCallOption as ChatCompletionFunctionCallOption,
|
|
357
360
|
type ChatCompletionFunctionMessageParam as ChatCompletionFunctionMessageParam,
|
|
358
361
|
type ChatCompletionMessage as ChatCompletionMessage,
|
|
@@ -361,6 +364,7 @@ export declare namespace OpenAI {
|
|
|
361
364
|
type ChatCompletionModality as ChatCompletionModality,
|
|
362
365
|
type ChatCompletionNamedToolChoice as ChatCompletionNamedToolChoice,
|
|
363
366
|
type ChatCompletionPredictionContent as ChatCompletionPredictionContent,
|
|
367
|
+
type ChatCompletionReasoningEffort as ChatCompletionReasoningEffort,
|
|
364
368
|
type ChatCompletionRole as ChatCompletionRole,
|
|
365
369
|
type ChatCompletionStreamOptions as ChatCompletionStreamOptions,
|
|
366
370
|
type ChatCompletionSystemMessageParam as ChatCompletionSystemMessageParam,
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
ChatCompletionCreateParams,
|
|
17
17
|
ChatCompletionCreateParamsNonStreaming,
|
|
18
18
|
ChatCompletionCreateParamsStreaming,
|
|
19
|
+
ChatCompletionDeveloperMessageParam,
|
|
19
20
|
ChatCompletionFunctionCallOption,
|
|
20
21
|
ChatCompletionFunctionMessageParam,
|
|
21
22
|
ChatCompletionMessage,
|
|
@@ -24,6 +25,7 @@ import {
|
|
|
24
25
|
ChatCompletionModality,
|
|
25
26
|
ChatCompletionNamedToolChoice,
|
|
26
27
|
ChatCompletionPredictionContent,
|
|
28
|
+
ChatCompletionReasoningEffort,
|
|
27
29
|
ChatCompletionRole,
|
|
28
30
|
ChatCompletionStreamOptions,
|
|
29
31
|
ChatCompletionSystemMessageParam,
|
|
@@ -44,6 +46,8 @@ export class Chat extends APIResource {
|
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
export type ChatModel =
|
|
49
|
+
| 'o1'
|
|
50
|
+
| 'o1-2024-12-17'
|
|
47
51
|
| 'o1-preview'
|
|
48
52
|
| 'o1-preview-2024-09-12'
|
|
49
53
|
| 'o1-mini'
|
|
@@ -52,10 +56,11 @@ export type ChatModel =
|
|
|
52
56
|
| 'gpt-4o-2024-11-20'
|
|
53
57
|
| 'gpt-4o-2024-08-06'
|
|
54
58
|
| 'gpt-4o-2024-05-13'
|
|
55
|
-
| 'gpt-4o-realtime-preview'
|
|
56
|
-
| 'gpt-4o-realtime-preview-2024-10-01'
|
|
57
59
|
| 'gpt-4o-audio-preview'
|
|
58
60
|
| 'gpt-4o-audio-preview-2024-10-01'
|
|
61
|
+
| 'gpt-4o-audio-preview-2024-12-17'
|
|
62
|
+
| 'gpt-4o-mini-audio-preview'
|
|
63
|
+
| 'gpt-4o-mini-audio-preview-2024-12-17'
|
|
59
64
|
| 'chatgpt-4o-latest'
|
|
60
65
|
| 'gpt-4o-mini'
|
|
61
66
|
| 'gpt-4o-mini-2024-07-18'
|
|
@@ -96,6 +101,7 @@ export declare namespace Chat {
|
|
|
96
101
|
type ChatCompletionContentPartInputAudio as ChatCompletionContentPartInputAudio,
|
|
97
102
|
type ChatCompletionContentPartRefusal as ChatCompletionContentPartRefusal,
|
|
98
103
|
type ChatCompletionContentPartText as ChatCompletionContentPartText,
|
|
104
|
+
type ChatCompletionDeveloperMessageParam as ChatCompletionDeveloperMessageParam,
|
|
99
105
|
type ChatCompletionFunctionCallOption as ChatCompletionFunctionCallOption,
|
|
100
106
|
type ChatCompletionFunctionMessageParam as ChatCompletionFunctionMessageParam,
|
|
101
107
|
type ChatCompletionMessage as ChatCompletionMessage,
|
|
@@ -104,6 +110,7 @@ export declare namespace Chat {
|
|
|
104
110
|
type ChatCompletionModality as ChatCompletionModality,
|
|
105
111
|
type ChatCompletionNamedToolChoice as ChatCompletionNamedToolChoice,
|
|
106
112
|
type ChatCompletionPredictionContent as ChatCompletionPredictionContent,
|
|
113
|
+
type ChatCompletionReasoningEffort as ChatCompletionReasoningEffort,
|
|
107
114
|
type ChatCompletionRole as ChatCompletionRole,
|
|
108
115
|
type ChatCompletionStreamOptions as ChatCompletionStreamOptions,
|
|
109
116
|
type ChatCompletionSystemMessageParam as ChatCompletionSystemMessageParam,
|
|
@@ -15,6 +15,12 @@ export class Completions extends APIResource {
|
|
|
15
15
|
* [text generation](https://platform.openai.com/docs/guides/text-generation),
|
|
16
16
|
* [vision](https://platform.openai.com/docs/guides/vision), and
|
|
17
17
|
* [audio](https://platform.openai.com/docs/guides/audio) guides.
|
|
18
|
+
*
|
|
19
|
+
* Parameter support can differ depending on the model used to generate the
|
|
20
|
+
* response, particularly for newer reasoning models. Parameters that are only
|
|
21
|
+
* supported for reasoning models are noted below. For the current state of
|
|
22
|
+
* unsupported parameters in reasoning models,
|
|
23
|
+
* [refer to the reasoning guide](https://platform.openai.com/docs/guides/reasoning).
|
|
18
24
|
*/
|
|
19
25
|
create(
|
|
20
26
|
body: ChatCompletionCreateParamsNonStreaming,
|
|
@@ -135,6 +141,9 @@ export namespace ChatCompletion {
|
|
|
135
141
|
}
|
|
136
142
|
}
|
|
137
143
|
|
|
144
|
+
/**
|
|
145
|
+
* Messages sent by the model in response to user messages.
|
|
146
|
+
*/
|
|
138
147
|
export interface ChatCompletionAssistantMessageParam {
|
|
139
148
|
/**
|
|
140
149
|
* The role of the messages author, in this case `assistant`.
|
|
@@ -530,6 +539,29 @@ export interface ChatCompletionContentPartText {
|
|
|
530
539
|
type: 'text';
|
|
531
540
|
}
|
|
532
541
|
|
|
542
|
+
/**
|
|
543
|
+
* Developer-provided instructions that the model should follow, regardless of
|
|
544
|
+
* messages sent by the user. With o1 models and newer, `developer` messages
|
|
545
|
+
* replace the previous `system` messages.
|
|
546
|
+
*/
|
|
547
|
+
export interface ChatCompletionDeveloperMessageParam {
|
|
548
|
+
/**
|
|
549
|
+
* The contents of the developer message.
|
|
550
|
+
*/
|
|
551
|
+
content: string | Array<ChatCompletionContentPartText>;
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* The role of the messages author, in this case `developer`.
|
|
555
|
+
*/
|
|
556
|
+
role: 'developer';
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* An optional name for the participant. Provides the model information to
|
|
560
|
+
* differentiate between participants of the same role.
|
|
561
|
+
*/
|
|
562
|
+
name?: string;
|
|
563
|
+
}
|
|
564
|
+
|
|
533
565
|
/**
|
|
534
566
|
* Specifying a particular function via `{"name": "my_function"}` forces the model
|
|
535
567
|
* to call that function.
|
|
@@ -620,7 +652,13 @@ export namespace ChatCompletionMessage {
|
|
|
620
652
|
}
|
|
621
653
|
}
|
|
622
654
|
|
|
655
|
+
/**
|
|
656
|
+
* Developer-provided instructions that the model should follow, regardless of
|
|
657
|
+
* messages sent by the user. With o1 models and newer, `developer` messages
|
|
658
|
+
* replace the previous `system` messages.
|
|
659
|
+
*/
|
|
623
660
|
export type ChatCompletionMessageParam =
|
|
661
|
+
| ChatCompletionDeveloperMessageParam
|
|
624
662
|
| ChatCompletionSystemMessageParam
|
|
625
663
|
| ChatCompletionUserMessageParam
|
|
626
664
|
| ChatCompletionAssistantMessageParam
|
|
@@ -707,6 +745,16 @@ export interface ChatCompletionPredictionContent {
|
|
|
707
745
|
type: 'content';
|
|
708
746
|
}
|
|
709
747
|
|
|
748
|
+
/**
|
|
749
|
+
* **o1 models only**
|
|
750
|
+
*
|
|
751
|
+
* Constrains effort on reasoning for
|
|
752
|
+
* [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
|
|
753
|
+
* supported values are `low`, `medium`, and `high`. Reducing reasoning effort can
|
|
754
|
+
* result in faster responses and fewer tokens used on reasoning in a response.
|
|
755
|
+
*/
|
|
756
|
+
export type ChatCompletionReasoningEffort = 'low' | 'medium' | 'high';
|
|
757
|
+
|
|
710
758
|
/**
|
|
711
759
|
* The role of the author of a message
|
|
712
760
|
*/
|
|
@@ -725,6 +773,11 @@ export interface ChatCompletionStreamOptions {
|
|
|
725
773
|
include_usage?: boolean;
|
|
726
774
|
}
|
|
727
775
|
|
|
776
|
+
/**
|
|
777
|
+
* Developer-provided instructions that the model should follow, regardless of
|
|
778
|
+
* messages sent by the user. With o1 models and newer, use `developer` messages
|
|
779
|
+
* for this purpose instead.
|
|
780
|
+
*/
|
|
728
781
|
export interface ChatCompletionSystemMessageParam {
|
|
729
782
|
/**
|
|
730
783
|
* The contents of the system message.
|
|
@@ -835,6 +888,10 @@ export interface ChatCompletionToolMessageParam {
|
|
|
835
888
|
tool_call_id: string;
|
|
836
889
|
}
|
|
837
890
|
|
|
891
|
+
/**
|
|
892
|
+
* Messages sent by an end user, containing prompts or additional context
|
|
893
|
+
* information.
|
|
894
|
+
*/
|
|
838
895
|
export interface ChatCompletionUserMessageParam {
|
|
839
896
|
/**
|
|
840
897
|
* The contents of the user message.
|
|
@@ -891,20 +948,22 @@ export interface ChatCompletionCreateParamsBase {
|
|
|
891
948
|
* Number between -2.0 and 2.0. Positive values penalize new tokens based on their
|
|
892
949
|
* existing frequency in the text so far, decreasing the model's likelihood to
|
|
893
950
|
* repeat the same line verbatim.
|
|
894
|
-
*
|
|
895
|
-
* [See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation)
|
|
896
951
|
*/
|
|
897
952
|
frequency_penalty?: number | null;
|
|
898
953
|
|
|
899
954
|
/**
|
|
900
955
|
* Deprecated in favor of `tool_choice`.
|
|
901
956
|
*
|
|
902
|
-
* Controls which (if any) function is called by the model.
|
|
903
|
-
*
|
|
904
|
-
*
|
|
905
|
-
*
|
|
957
|
+
* Controls which (if any) function is called by the model.
|
|
958
|
+
*
|
|
959
|
+
* `none` means the model will not call a function and instead generates a message.
|
|
960
|
+
*
|
|
961
|
+
* `auto` means the model can pick between generating a message or calling a
|
|
906
962
|
* function.
|
|
907
963
|
*
|
|
964
|
+
* Specifying a particular function via `{"name": "my_function"}` forces the model
|
|
965
|
+
* to call that function.
|
|
966
|
+
*
|
|
908
967
|
* `none` is the default when no functions are present. `auto` is the default if
|
|
909
968
|
* functions are present.
|
|
910
969
|
*/
|
|
@@ -998,17 +1057,21 @@ export interface ChatCompletionCreateParamsBase {
|
|
|
998
1057
|
* Number between -2.0 and 2.0. Positive values penalize new tokens based on
|
|
999
1058
|
* whether they appear in the text so far, increasing the model's likelihood to
|
|
1000
1059
|
* talk about new topics.
|
|
1001
|
-
*
|
|
1002
|
-
* [See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation)
|
|
1003
1060
|
*/
|
|
1004
1061
|
presence_penalty?: number | null;
|
|
1005
1062
|
|
|
1006
1063
|
/**
|
|
1007
|
-
*
|
|
1008
|
-
*
|
|
1009
|
-
*
|
|
1010
|
-
* [
|
|
1011
|
-
*
|
|
1064
|
+
* **o1 models only**
|
|
1065
|
+
*
|
|
1066
|
+
* Constrains effort on reasoning for
|
|
1067
|
+
* [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
|
|
1068
|
+
* supported values are `low`, `medium`, and `high`. Reducing reasoning effort can
|
|
1069
|
+
* result in faster responses and fewer tokens used on reasoning in a response.
|
|
1070
|
+
*/
|
|
1071
|
+
reasoning_effort?: ChatCompletionReasoningEffort;
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
* An object specifying the format that the model must output.
|
|
1012
1075
|
*
|
|
1013
1076
|
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
|
|
1014
1077
|
* Outputs which ensures the model will match your supplied JSON schema. Learn more
|
|
@@ -1088,9 +1151,8 @@ export interface ChatCompletionCreateParamsBase {
|
|
|
1088
1151
|
/**
|
|
1089
1152
|
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will
|
|
1090
1153
|
* make the output more random, while lower values like 0.2 will make it more
|
|
1091
|
-
* focused and deterministic.
|
|
1092
|
-
*
|
|
1093
|
-
* We generally recommend altering this or `top_p` but not both.
|
|
1154
|
+
* focused and deterministic. We generally recommend altering this or `top_p` but
|
|
1155
|
+
* not both.
|
|
1094
1156
|
*/
|
|
1095
1157
|
temperature?: number | null;
|
|
1096
1158
|
|
|
@@ -1223,6 +1285,7 @@ export declare namespace Completions {
|
|
|
1223
1285
|
type ChatCompletionContentPartInputAudio as ChatCompletionContentPartInputAudio,
|
|
1224
1286
|
type ChatCompletionContentPartRefusal as ChatCompletionContentPartRefusal,
|
|
1225
1287
|
type ChatCompletionContentPartText as ChatCompletionContentPartText,
|
|
1288
|
+
type ChatCompletionDeveloperMessageParam as ChatCompletionDeveloperMessageParam,
|
|
1226
1289
|
type ChatCompletionFunctionCallOption as ChatCompletionFunctionCallOption,
|
|
1227
1290
|
type ChatCompletionFunctionMessageParam as ChatCompletionFunctionMessageParam,
|
|
1228
1291
|
type ChatCompletionMessage as ChatCompletionMessage,
|
|
@@ -1231,6 +1294,7 @@ export declare namespace Completions {
|
|
|
1231
1294
|
type ChatCompletionModality as ChatCompletionModality,
|
|
1232
1295
|
type ChatCompletionNamedToolChoice as ChatCompletionNamedToolChoice,
|
|
1233
1296
|
type ChatCompletionPredictionContent as ChatCompletionPredictionContent,
|
|
1297
|
+
type ChatCompletionReasoningEffort as ChatCompletionReasoningEffort,
|
|
1234
1298
|
type ChatCompletionRole as ChatCompletionRole,
|
|
1235
1299
|
type ChatCompletionStreamOptions as ChatCompletionStreamOptions,
|
|
1236
1300
|
type ChatCompletionSystemMessageParam as ChatCompletionSystemMessageParam,
|
|
@@ -13,6 +13,7 @@ export {
|
|
|
13
13
|
type ChatCompletionContentPartInputAudio,
|
|
14
14
|
type ChatCompletionContentPartRefusal,
|
|
15
15
|
type ChatCompletionContentPartText,
|
|
16
|
+
type ChatCompletionDeveloperMessageParam,
|
|
16
17
|
type ChatCompletionFunctionCallOption,
|
|
17
18
|
type ChatCompletionFunctionMessageParam,
|
|
18
19
|
type ChatCompletionMessage,
|
|
@@ -21,6 +22,7 @@ export {
|
|
|
21
22
|
type ChatCompletionModality,
|
|
22
23
|
type ChatCompletionNamedToolChoice,
|
|
23
24
|
type ChatCompletionPredictionContent,
|
|
25
|
+
type ChatCompletionReasoningEffort,
|
|
24
26
|
type ChatCompletionRole,
|
|
25
27
|
type ChatCompletionStreamOptions,
|
|
26
28
|
type ChatCompletionSystemMessageParam,
|