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