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