sarvamai 1.1.15-alpha.2 → 1.1.15
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/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/decisions/client/Client.d.ts +3 -1
- package/dist/cjs/api/resources/decisions/client/Client.js +3 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/decisions/client/Client.d.mts +3 -1
- package/dist/esm/api/resources/decisions/client/Client.mjs +3 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +3 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "sarvamai",
|
|
46
|
-
"X-Fern-SDK-Version": "1.1.15
|
|
47
|
-
"User-Agent": "sarvamai/1.1.15
|
|
46
|
+
"X-Fern-SDK-Version": "1.1.15",
|
|
47
|
+
"User-Agent": "sarvamai/1.1.15",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -23,7 +23,9 @@ export declare class DecisionsClient {
|
|
|
23
23
|
*
|
|
24
24
|
* **Limits:** 32,768 tokens per question (state + question + options), 2–255 options per `choice` and 2–10 levels per `score`. There is no cap on the number of questions. The state is not truncated, and if any one question breaks a limit the whole request fails with `422`.
|
|
25
25
|
*
|
|
26
|
-
* **Timeout:** each request must finish within 60 seconds. A longer request fails with `
|
|
26
|
+
* **Timeout:** each request must finish within 60 seconds. A longer request fails with `503 model_overloaded`; split very large batches across several requests before retrying.
|
|
27
|
+
*
|
|
28
|
+
* **Errors:** every error carries a `message`, a `code` and a `request_id`. Validation errors also carry `param`, the path to the field at fault, such as `questions.urgent.noul.instruction`.
|
|
27
29
|
*
|
|
28
30
|
* @param {SarvamAI.SystemOneRequest} request
|
|
29
31
|
* @param {DecisionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -68,7 +68,9 @@ class DecisionsClient {
|
|
|
68
68
|
*
|
|
69
69
|
* **Limits:** 32,768 tokens per question (state + question + options), 2–255 options per `choice` and 2–10 levels per `score`. There is no cap on the number of questions. The state is not truncated, and if any one question breaks a limit the whole request fails with `422`.
|
|
70
70
|
*
|
|
71
|
-
* **Timeout:** each request must finish within 60 seconds. A longer request fails with `
|
|
71
|
+
* **Timeout:** each request must finish within 60 seconds. A longer request fails with `503 model_overloaded`; split very large batches across several requests before retrying.
|
|
72
|
+
*
|
|
73
|
+
* **Errors:** every error carries a `message`, a `code` and a `request_id`. Validation errors also carry `param`, the path to the field at fault, such as `questions.urgent.noul.instruction`.
|
|
72
74
|
*
|
|
73
75
|
* @param {SarvamAI.SystemOneRequest} request
|
|
74
76
|
* @param {DecisionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.1.15
|
|
1
|
+
export declare const SDK_VERSION = "1.1.15";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "sarvamai",
|
|
9
|
-
"X-Fern-SDK-Version": "1.1.15
|
|
10
|
-
"User-Agent": "sarvamai/1.1.15
|
|
9
|
+
"X-Fern-SDK-Version": "1.1.15",
|
|
10
|
+
"User-Agent": "sarvamai/1.1.15",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -23,7 +23,9 @@ export declare class DecisionsClient {
|
|
|
23
23
|
*
|
|
24
24
|
* **Limits:** 32,768 tokens per question (state + question + options), 2–255 options per `choice` and 2–10 levels per `score`. There is no cap on the number of questions. The state is not truncated, and if any one question breaks a limit the whole request fails with `422`.
|
|
25
25
|
*
|
|
26
|
-
* **Timeout:** each request must finish within 60 seconds. A longer request fails with `
|
|
26
|
+
* **Timeout:** each request must finish within 60 seconds. A longer request fails with `503 model_overloaded`; split very large batches across several requests before retrying.
|
|
27
|
+
*
|
|
28
|
+
* **Errors:** every error carries a `message`, a `code` and a `request_id`. Validation errors also carry `param`, the path to the field at fault, such as `questions.urgent.noul.instruction`.
|
|
27
29
|
*
|
|
28
30
|
* @param {SarvamAI.SystemOneRequest} request
|
|
29
31
|
* @param {DecisionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -32,7 +32,9 @@ export class DecisionsClient {
|
|
|
32
32
|
*
|
|
33
33
|
* **Limits:** 32,768 tokens per question (state + question + options), 2–255 options per `choice` and 2–10 levels per `score`. There is no cap on the number of questions. The state is not truncated, and if any one question breaks a limit the whole request fails with `422`.
|
|
34
34
|
*
|
|
35
|
-
* **Timeout:** each request must finish within 60 seconds. A longer request fails with `
|
|
35
|
+
* **Timeout:** each request must finish within 60 seconds. A longer request fails with `503 model_overloaded`; split very large batches across several requests before retrying.
|
|
36
|
+
*
|
|
37
|
+
* **Errors:** every error carries a `message`, a `code` and a `request_id`. Validation errors also carry `param`, the path to the field at fault, such as `questions.urgent.noul.instruction`.
|
|
36
38
|
*
|
|
37
39
|
* @param {SarvamAI.SystemOneRequest} request
|
|
38
40
|
* @param {DecisionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.1.15
|
|
1
|
+
export declare const SDK_VERSION = "1.1.15";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.1.15
|
|
1
|
+
export const SDK_VERSION = "1.1.15";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -4159,7 +4159,9 @@ Requires `api-subscription-key`, or `Authorization: Bearer <key>`.
|
|
|
4159
4159
|
|
|
4160
4160
|
**Limits:** 32,768 tokens per question (state + question + options), 2–255 options per `choice` and 2–10 levels per `score`. There is no cap on the number of questions. The state is not truncated, and if any one question breaks a limit the whole request fails with `422`.
|
|
4161
4161
|
|
|
4162
|
-
**Timeout:** each request must finish within 60 seconds. A longer request fails with `
|
|
4162
|
+
**Timeout:** each request must finish within 60 seconds. A longer request fails with `503 model_overloaded`; split very large batches across several requests before retrying.
|
|
4163
|
+
|
|
4164
|
+
**Errors:** every error carries a `message`, a `code` and a `request_id`. Validation errors also carry `param`, the path to the field at fault, such as `questions.urgent.noul.instruction`.
|
|
4163
4165
|
</dd>
|
|
4164
4166
|
</dl>
|
|
4165
4167
|
</dd>
|