@discomedia/utils 1.0.41 → 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 +32 -29
- package/dist/index-frontend.cjs.map +1 -1
- package/dist/index-frontend.mjs +32 -29
- package/dist/index-frontend.mjs.map +1 -1
- package/dist/index.cjs +58 -61
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +58 -61
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +7 -7
- package/dist/test.js +58 -61
- package/dist/test.js.map +1 -1
- package/dist/types/alpaca-market-data-api.d.ts.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/alpaca-market-data-api.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 +7 -7
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 = () => {
|
|
@@ -3808,19 +3808,6 @@ class ChatKit extends APIResource {
|
|
|
3808
3808
|
this.sessions = new Sessions(this._client);
|
|
3809
3809
|
this.threads = new Threads$1(this._client);
|
|
3810
3810
|
}
|
|
3811
|
-
/**
|
|
3812
|
-
* Upload a ChatKit file
|
|
3813
|
-
*
|
|
3814
|
-
* @example
|
|
3815
|
-
* ```ts
|
|
3816
|
-
* const response = await client.beta.chatkit.uploadFile({
|
|
3817
|
-
* file: fs.createReadStream('path/to/file'),
|
|
3818
|
-
* });
|
|
3819
|
-
* ```
|
|
3820
|
-
*/
|
|
3821
|
-
uploadFile(body, options) {
|
|
3822
|
-
return this._client.post('/chatkit/files', maybeMultipartFormRequestOptions({ body, ...options, headers: buildHeaders([{ 'OpenAI-Beta': 'chatkit_beta=v1' }, options?.headers]) }, this._client));
|
|
3823
|
-
}
|
|
3824
3811
|
}
|
|
3825
3812
|
ChatKit.Sessions = Sessions;
|
|
3826
3813
|
ChatKit.Threads = Threads$1;
|
|
@@ -5108,20 +5095,19 @@ let Files$1 = class Files extends APIResource {
|
|
|
5108
5095
|
* up to 512 MB, and the size of all files uploaded by one organization can be up
|
|
5109
5096
|
* to 1 TB.
|
|
5110
5097
|
*
|
|
5111
|
-
* The Assistants API supports files up to 2 million tokens and of specific file
|
|
5112
|
-
*
|
|
5113
|
-
*
|
|
5114
|
-
* details.
|
|
5115
|
-
*
|
|
5116
|
-
*
|
|
5117
|
-
*
|
|
5118
|
-
*
|
|
5119
|
-
*
|
|
5120
|
-
*
|
|
5121
|
-
*
|
|
5122
|
-
*
|
|
5123
|
-
*
|
|
5124
|
-
* [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).
|
|
5125
5111
|
*
|
|
5126
5112
|
* Please [contact us](https://help.openai.com/) if you need to increase these
|
|
5127
5113
|
* storage limits.
|
|
@@ -5142,7 +5128,7 @@ let Files$1 = class Files extends APIResource {
|
|
|
5142
5128
|
return this._client.getAPIList('/files', (CursorPage), { query, ...options });
|
|
5143
5129
|
}
|
|
5144
5130
|
/**
|
|
5145
|
-
* Delete a file.
|
|
5131
|
+
* Delete a file and remove it from all vector stores.
|
|
5146
5132
|
*/
|
|
5147
5133
|
delete(fileID, options) {
|
|
5148
5134
|
return this._client.delete(path `/files/${fileID}`, options);
|
|
@@ -6024,11 +6010,27 @@ class InputItems extends APIResource {
|
|
|
6024
6010
|
}
|
|
6025
6011
|
}
|
|
6026
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
|
+
|
|
6027
6028
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
6028
6029
|
class Responses extends APIResource {
|
|
6029
6030
|
constructor() {
|
|
6030
6031
|
super(...arguments);
|
|
6031
6032
|
this.inputItems = new InputItems(this._client);
|
|
6033
|
+
this.inputTokens = new InputTokens(this._client);
|
|
6032
6034
|
}
|
|
6033
6035
|
create(body, options) {
|
|
6034
6036
|
return this._client.post('/responses', { body, ...options, stream: body.stream ?? false })._thenUnwrap((rsp) => {
|
|
@@ -6094,6 +6096,7 @@ class Responses extends APIResource {
|
|
|
6094
6096
|
}
|
|
6095
6097
|
}
|
|
6096
6098
|
Responses.InputItems = InputItems;
|
|
6099
|
+
Responses.InputTokens = InputTokens;
|
|
6097
6100
|
|
|
6098
6101
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
6099
6102
|
class Parts extends APIResource {
|