@premai/api-sdk 1.0.37 → 1.0.39

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/cli.cjs CHANGED
@@ -46,7 +46,7 @@ var endpoints = {
46
46
  enclave: process.env.ENCLAVE_URL,
47
47
  proxy: process.env.PROXY_URL
48
48
  };
49
- var DEFAULT_REQUEST_TIMEOUT_MS = 60000;
49
+ var DEFAULT_REQUEST_TIMEOUT_MS = 600000;
50
50
  var DEFAULT_MAX_BUFFER_SIZE = 10 * 1024 * 1024;
51
51
 
52
52
  // src/utils/attestation.ts
@@ -997,7 +997,8 @@ function preprocessRequest(body, encryptionKeys) {
997
997
  cipherText: import_utils5.bytesToHex(cipherText),
998
998
  encryptedInference: import_utils5.bytesToHex(encrypted),
999
999
  nonce: import_utils5.bytesToHex(nonce),
1000
- model: body.model
1000
+ model: body.model,
1001
+ stream: body.stream === true
1001
1002
  },
1002
1003
  sharedSecret,
1003
1004
  nonce
package/dist/config.d.ts CHANGED
@@ -3,5 +3,5 @@ export type endpointsT = {
3
3
  proxy?: string;
4
4
  };
5
5
  export declare const endpoints: endpointsT;
6
- export declare const DEFAULT_REQUEST_TIMEOUT_MS = 60000;
6
+ export declare const DEFAULT_REQUEST_TIMEOUT_MS = 600000;
7
7
  export declare const DEFAULT_MAX_BUFFER_SIZE: number;
@@ -14,7 +14,7 @@ var endpoints = {
14
14
  enclave: process.env.ENCLAVE_URL,
15
15
  proxy: process.env.PROXY_URL
16
16
  };
17
- var DEFAULT_REQUEST_TIMEOUT_MS = 60000;
17
+ var DEFAULT_REQUEST_TIMEOUT_MS = 600000;
18
18
  var DEFAULT_MAX_BUFFER_SIZE = 10 * 1024 * 1024;
19
19
 
20
20
  // src/utils/attestation.ts
@@ -1010,7 +1010,8 @@ function preprocessRequest(body, encryptionKeys) {
1010
1010
  cipherText: bytesToHex5(cipherText),
1011
1011
  encryptedInference: bytesToHex5(encrypted),
1012
1012
  nonce: bytesToHex5(nonce),
1013
- model: body.model
1013
+ model: body.model,
1014
+ stream: body.stream === true
1014
1015
  },
1015
1016
  sharedSecret,
1016
1017
  nonce
@@ -245,7 +245,7 @@ var endpoints = {
245
245
  enclave: process.env.ENCLAVE_URL,
246
246
  proxy: process.env.PROXY_URL
247
247
  };
248
- var DEFAULT_REQUEST_TIMEOUT_MS = 60000;
248
+ var DEFAULT_REQUEST_TIMEOUT_MS = 600000;
249
249
  var DEFAULT_MAX_BUFFER_SIZE = 10 * 1024 * 1024;
250
250
 
251
251
  // src/utils/attestation.ts
@@ -25281,7 +25281,8 @@ function preprocessRequest(body, encryptionKeys) {
25281
25281
  cipherText: bytesToHex(cipherText),
25282
25282
  encryptedInference: bytesToHex(encrypted),
25283
25283
  nonce: bytesToHex(nonce),
25284
- model: body.model
25284
+ model: body.model,
25285
+ stream: body.stream === true
25285
25286
  },
25286
25287
  sharedSecret,
25287
25288
  nonce
package/dist/index.cjs CHANGED
@@ -95,7 +95,7 @@ var endpoints = {
95
95
  enclave: process.env.ENCLAVE_URL,
96
96
  proxy: process.env.PROXY_URL
97
97
  };
98
- var DEFAULT_REQUEST_TIMEOUT_MS = 60000;
98
+ var DEFAULT_REQUEST_TIMEOUT_MS = 600000;
99
99
  var DEFAULT_MAX_BUFFER_SIZE = 10 * 1024 * 1024;
100
100
 
101
101
  // src/utils/attestation.ts
@@ -1091,7 +1091,8 @@ function preprocessRequest(body, encryptionKeys) {
1091
1091
  cipherText: import_utils5.bytesToHex(cipherText),
1092
1092
  encryptedInference: import_utils5.bytesToHex(encrypted),
1093
1093
  nonce: import_utils5.bytesToHex(nonce),
1094
- model: body.model
1094
+ model: body.model,
1095
+ stream: body.stream === true
1095
1096
  },
1096
1097
  sharedSecret,
1097
1098
  nonce
package/dist/index.mjs CHANGED
@@ -17,7 +17,7 @@ var endpoints = {
17
17
  enclave: process.env.ENCLAVE_URL,
18
18
  proxy: process.env.PROXY_URL
19
19
  };
20
- var DEFAULT_REQUEST_TIMEOUT_MS = 60000;
20
+ var DEFAULT_REQUEST_TIMEOUT_MS = 600000;
21
21
  var DEFAULT_MAX_BUFFER_SIZE = 10 * 1024 * 1024;
22
22
 
23
23
  // src/utils/attestation.ts
@@ -1013,7 +1013,8 @@ function preprocessRequest(body, encryptionKeys) {
1013
1013
  cipherText: bytesToHex5(cipherText),
1014
1014
  encryptedInference: bytesToHex5(encrypted),
1015
1015
  nonce: bytesToHex5(nonce),
1016
- model: body.model
1016
+ model: body.model,
1017
+ stream: body.stream === true
1017
1018
  },
1018
1019
  sharedSecret,
1019
1020
  nonce
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  },
5
5
  "homepage": "https://github.com/premai-io/api-sdk-ts",
6
6
  "name": "@premai/api-sdk",
7
- "version": "1.0.37",
7
+ "version": "1.0.39",
8
8
  "main": "./dist/index.cjs",
9
9
  "bin": {
10
10
  "pcci-proxy": "./dist/cli.cjs"