@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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.0.42",
6
+ "version": "1.0.43",
7
7
  "author": "Disco Media",
8
8
  "description": "Utility functions used in Disco Media apps",
9
9
  "always-build-npm": true,
@@ -33,17 +33,17 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "dotenv": "^17.2.3",
36
- "openai": "^6.5.0",
36
+ "openai": "^6.7.0",
37
37
  "p-limit": "^7.2.0",
38
38
  "tslib": "^2.8.1",
39
39
  "ws": "^8.18.3"
40
40
  },
41
41
  "license": "ISC",
42
42
  "devDependencies": {
43
- "@rollup/plugin-commonjs": "^28.0.8",
43
+ "@rollup/plugin-commonjs": "^28.0.9",
44
44
  "@rollup/plugin-json": "^6.1.0",
45
45
  "@rollup/plugin-node-resolve": "^16.0.3",
46
- "@rollup/plugin-typescript": "^12.1.4",
46
+ "@rollup/plugin-typescript": "^12.3.0",
47
47
  "@types/ws": "^8.18.1",
48
48
  "lightweight-charts": "^5.0.9",
49
49
  "rollup": "^4.52.5",
package/dist/test.js CHANGED
@@ -799,7 +799,7 @@ const safeJSON = (text) => {
799
799
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
800
800
  const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
801
801
 
802
- const VERSION = '6.5.0'; // x-release-please-version
802
+ const VERSION = '6.7.0'; // x-release-please-version
803
803
 
804
804
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
805
805
  const isRunningInBrowser = () => {
@@ -5641,20 +5641,19 @@ let Files$1 = class Files extends APIResource {
5641
5641
  * up to 512 MB, and the size of all files uploaded by one organization can be up
5642
5642
  * to 1 TB.
5643
5643
  *
5644
- * The Assistants API supports files up to 2 million tokens and of specific file
5645
- * types. See the
5646
- * [Assistants Tools guide](https://platform.openai.com/docs/assistants/tools) for
5647
- * details.
5648
- *
5649
- * The Fine-tuning API only supports `.jsonl` files. The input also has certain
5650
- * required formats for fine-tuning
5651
- * [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input) or
5652
- * [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input)
5653
- * models.
5654
- *
5655
- * The Batch API only supports `.jsonl` files up to 200 MB in size. The input also
5656
- * has a specific required
5657
- * [format](https://platform.openai.com/docs/api-reference/batch/request-input).
5644
+ * - The Assistants API supports files up to 2 million tokens and of specific file
5645
+ * types. See the
5646
+ * [Assistants Tools guide](https://platform.openai.com/docs/assistants/tools)
5647
+ * for details.
5648
+ * - The Fine-tuning API only supports `.jsonl` files. The input also has certain
5649
+ * required formats for fine-tuning
5650
+ * [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input)
5651
+ * or
5652
+ * [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input)
5653
+ * models.
5654
+ * - The Batch API only supports `.jsonl` files up to 200 MB in size. The input
5655
+ * also has a specific required
5656
+ * [format](https://platform.openai.com/docs/api-reference/batch/request-input).
5658
5657
  *
5659
5658
  * Please [contact us](https://help.openai.com/) if you need to increase these
5660
5659
  * storage limits.
@@ -6557,11 +6556,27 @@ class InputItems extends APIResource {
6557
6556
  }
6558
6557
  }
6559
6558
 
6559
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
6560
+ class InputTokens extends APIResource {
6561
+ /**
6562
+ * Get input token counts
6563
+ *
6564
+ * @example
6565
+ * ```ts
6566
+ * const response = await client.responses.inputTokens.count();
6567
+ * ```
6568
+ */
6569
+ count(body = {}, options) {
6570
+ return this._client.post('/responses/input_tokens', { body, ...options });
6571
+ }
6572
+ }
6573
+
6560
6574
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
6561
6575
  class Responses extends APIResource {
6562
6576
  constructor() {
6563
6577
  super(...arguments);
6564
6578
  this.inputItems = new InputItems(this._client);
6579
+ this.inputTokens = new InputTokens(this._client);
6565
6580
  }
6566
6581
  create(body, options) {
6567
6582
  return this._client.post('/responses', { body, ...options, stream: body.stream ?? false })._thenUnwrap((rsp) => {
@@ -6627,6 +6642,7 @@ class Responses extends APIResource {
6627
6642
  }
6628
6643
  }
6629
6644
  Responses.InputItems = InputItems;
6645
+ Responses.InputTokens = InputTokens;
6630
6646
 
6631
6647
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
6632
6648
  class Parts extends APIResource {