@discomedia/utils 1.0.42 → 1.0.43
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/dist/index-frontend.cjs +31 -15
- package/dist/index-frontend.cjs.map +1 -1
- package/dist/index-frontend.mjs +31 -15
- package/dist/index-frontend.mjs.map +1 -1
- package/dist/index.cjs +31 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +31 -15
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +4 -4
- package/dist/test.js +31 -15
- package/dist/test.js.map +1 -1
- package/dist/types/types/alpaca-types.d.ts +1 -1
- package/dist/types/types/alpaca-types.d.ts.map +1 -1
- package/dist/types-frontend/types/alpaca-types.d.ts +1 -1
- package/dist/types-frontend/types/alpaca-types.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -2451,7 +2451,7 @@ const safeJSON = (text) => {
|
|
|
2451
2451
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2452
2452
|
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
2453
2453
|
|
|
2454
|
-
const VERSION = '6.
|
|
2454
|
+
const VERSION = '6.7.0'; // x-release-please-version
|
|
2455
2455
|
|
|
2456
2456
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2457
2457
|
const isRunningInBrowser = () => {
|
|
@@ -7293,20 +7293,19 @@ let Files$1 = class Files extends APIResource {
|
|
|
7293
7293
|
* up to 512 MB, and the size of all files uploaded by one organization can be up
|
|
7294
7294
|
* to 1 TB.
|
|
7295
7295
|
*
|
|
7296
|
-
* The Assistants API supports files up to 2 million tokens and of specific file
|
|
7297
|
-
*
|
|
7298
|
-
*
|
|
7299
|
-
* details.
|
|
7300
|
-
*
|
|
7301
|
-
*
|
|
7302
|
-
*
|
|
7303
|
-
*
|
|
7304
|
-
*
|
|
7305
|
-
*
|
|
7306
|
-
*
|
|
7307
|
-
*
|
|
7308
|
-
*
|
|
7309
|
-
* [format](https://platform.openai.com/docs/api-reference/batch/request-input).
|
|
7296
|
+
* - The Assistants API supports files up to 2 million tokens and of specific file
|
|
7297
|
+
* types. See the
|
|
7298
|
+
* [Assistants Tools guide](https://platform.openai.com/docs/assistants/tools)
|
|
7299
|
+
* for details.
|
|
7300
|
+
* - The Fine-tuning API only supports `.jsonl` files. The input also has certain
|
|
7301
|
+
* required formats for fine-tuning
|
|
7302
|
+
* [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input)
|
|
7303
|
+
* or
|
|
7304
|
+
* [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input)
|
|
7305
|
+
* models.
|
|
7306
|
+
* - The Batch API only supports `.jsonl` files up to 200 MB in size. The input
|
|
7307
|
+
* also has a specific required
|
|
7308
|
+
* [format](https://platform.openai.com/docs/api-reference/batch/request-input).
|
|
7310
7309
|
*
|
|
7311
7310
|
* Please [contact us](https://help.openai.com/) if you need to increase these
|
|
7312
7311
|
* storage limits.
|
|
@@ -8209,11 +8208,27 @@ class InputItems extends APIResource {
|
|
|
8209
8208
|
}
|
|
8210
8209
|
}
|
|
8211
8210
|
|
|
8211
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8212
|
+
class InputTokens extends APIResource {
|
|
8213
|
+
/**
|
|
8214
|
+
* Get input token counts
|
|
8215
|
+
*
|
|
8216
|
+
* @example
|
|
8217
|
+
* ```ts
|
|
8218
|
+
* const response = await client.responses.inputTokens.count();
|
|
8219
|
+
* ```
|
|
8220
|
+
*/
|
|
8221
|
+
count(body = {}, options) {
|
|
8222
|
+
return this._client.post('/responses/input_tokens', { body, ...options });
|
|
8223
|
+
}
|
|
8224
|
+
}
|
|
8225
|
+
|
|
8212
8226
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8213
8227
|
class Responses extends APIResource {
|
|
8214
8228
|
constructor() {
|
|
8215
8229
|
super(...arguments);
|
|
8216
8230
|
this.inputItems = new InputItems(this._client);
|
|
8231
|
+
this.inputTokens = new InputTokens(this._client);
|
|
8217
8232
|
}
|
|
8218
8233
|
create(body, options) {
|
|
8219
8234
|
return this._client.post('/responses', { body, ...options, stream: body.stream ?? false })._thenUnwrap((rsp) => {
|
|
@@ -8279,6 +8294,7 @@ class Responses extends APIResource {
|
|
|
8279
8294
|
}
|
|
8280
8295
|
}
|
|
8281
8296
|
Responses.InputItems = InputItems;
|
|
8297
|
+
Responses.InputTokens = InputTokens;
|
|
8282
8298
|
|
|
8283
8299
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8284
8300
|
class Parts extends APIResource {
|