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