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.
@@ -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-alpha.2",
47
- "User-Agent": "sarvamai/1.1.15-alpha.2",
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 `500 internal_server_error`; split very large batches across several requests.
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 `500 internal_server_error`; split very large batches across several requests.
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.
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.1.15-alpha.2";
1
+ export declare const SDK_VERSION = "1.1.15";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.1.15-alpha.2";
4
+ exports.SDK_VERSION = "1.1.15";
@@ -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-alpha.2",
10
- "User-Agent": "sarvamai/1.1.15-alpha.2",
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 `500 internal_server_error`; split very large batches across several requests.
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 `500 internal_server_error`; split very large batches across several requests.
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.
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.1.15-alpha.2";
1
+ export declare const SDK_VERSION = "1.1.15";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.1.15-alpha.2";
1
+ export const SDK_VERSION = "1.1.15";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sarvamai",
3
- "version": "1.1.15-alpha.2",
3
+ "version": "1.1.15",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
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 `500 internal_server_error`; split very large batches across several requests.
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>