@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-frontend.mjs
CHANGED
|
@@ -253,7 +253,7 @@ const safeJSON = (text) => {
|
|
|
253
253
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
254
254
|
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
255
255
|
|
|
256
|
-
const VERSION = '6.
|
|
256
|
+
const VERSION = '6.7.0'; // x-release-please-version
|
|
257
257
|
|
|
258
258
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
259
259
|
const isRunningInBrowser = () => {
|
|
@@ -5095,20 +5095,19 @@ let Files$1 = class Files extends APIResource {
|
|
|
5095
5095
|
* up to 512 MB, and the size of all files uploaded by one organization can be up
|
|
5096
5096
|
* to 1 TB.
|
|
5097
5097
|
*
|
|
5098
|
-
* The Assistants API supports files up to 2 million tokens and of specific file
|
|
5099
|
-
*
|
|
5100
|
-
*
|
|
5101
|
-
* details.
|
|
5102
|
-
*
|
|
5103
|
-
*
|
|
5104
|
-
*
|
|
5105
|
-
*
|
|
5106
|
-
*
|
|
5107
|
-
*
|
|
5108
|
-
*
|
|
5109
|
-
*
|
|
5110
|
-
*
|
|
5111
|
-
* [format](https://platform.openai.com/docs/api-reference/batch/request-input).
|
|
5098
|
+
* - The Assistants API supports files up to 2 million tokens and of specific file
|
|
5099
|
+
* types. See the
|
|
5100
|
+
* [Assistants Tools guide](https://platform.openai.com/docs/assistants/tools)
|
|
5101
|
+
* for details.
|
|
5102
|
+
* - The Fine-tuning API only supports `.jsonl` files. The input also has certain
|
|
5103
|
+
* required formats for fine-tuning
|
|
5104
|
+
* [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input)
|
|
5105
|
+
* or
|
|
5106
|
+
* [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input)
|
|
5107
|
+
* models.
|
|
5108
|
+
* - The Batch API only supports `.jsonl` files up to 200 MB in size. The input
|
|
5109
|
+
* also has a specific required
|
|
5110
|
+
* [format](https://platform.openai.com/docs/api-reference/batch/request-input).
|
|
5112
5111
|
*
|
|
5113
5112
|
* Please [contact us](https://help.openai.com/) if you need to increase these
|
|
5114
5113
|
* storage limits.
|
|
@@ -6011,11 +6010,27 @@ class InputItems extends APIResource {
|
|
|
6011
6010
|
}
|
|
6012
6011
|
}
|
|
6013
6012
|
|
|
6013
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
6014
|
+
class InputTokens extends APIResource {
|
|
6015
|
+
/**
|
|
6016
|
+
* Get input token counts
|
|
6017
|
+
*
|
|
6018
|
+
* @example
|
|
6019
|
+
* ```ts
|
|
6020
|
+
* const response = await client.responses.inputTokens.count();
|
|
6021
|
+
* ```
|
|
6022
|
+
*/
|
|
6023
|
+
count(body = {}, options) {
|
|
6024
|
+
return this._client.post('/responses/input_tokens', { body, ...options });
|
|
6025
|
+
}
|
|
6026
|
+
}
|
|
6027
|
+
|
|
6014
6028
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
6015
6029
|
class Responses extends APIResource {
|
|
6016
6030
|
constructor() {
|
|
6017
6031
|
super(...arguments);
|
|
6018
6032
|
this.inputItems = new InputItems(this._client);
|
|
6033
|
+
this.inputTokens = new InputTokens(this._client);
|
|
6019
6034
|
}
|
|
6020
6035
|
create(body, options) {
|
|
6021
6036
|
return this._client.post('/responses', { body, ...options, stream: body.stream ?? false })._thenUnwrap((rsp) => {
|
|
@@ -6081,6 +6096,7 @@ class Responses extends APIResource {
|
|
|
6081
6096
|
}
|
|
6082
6097
|
}
|
|
6083
6098
|
Responses.InputItems = InputItems;
|
|
6099
|
+
Responses.InputTokens = InputTokens;
|
|
6084
6100
|
|
|
6085
6101
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
6086
6102
|
class Parts extends APIResource {
|