sarvamai 1.1.10-alpha.2 → 1.1.10

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.10-alpha.2",
47
- "User-Agent": "sarvamai/1.1.10-alpha.2",
46
+ "X-Fern-SDK-Version": "1.1.10",
47
+ "User-Agent": "sarvamai/1.1.10",
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);
@@ -109,6 +109,9 @@ class SpeechToTextClient {
109
109
  if (request.input_audio_codec != null) {
110
110
  _body.append("input_audio_codec", request.input_audio_codec);
111
111
  }
112
+ if (request.keyterms != null) {
113
+ _body.append("keyterms", JSON.stringify(request.keyterms));
114
+ }
112
115
  const _maybeEncodedRequest = yield _body.getRequest();
113
116
  const _authRequest = yield this._options.authProvider.getAuthRequest();
114
117
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
@@ -79,4 +79,8 @@ export interface SpeechToTextTranscriptionRequest {
79
79
  with_timestamps?: boolean;
80
80
  /** Input Audio codec/format of the input file. PCM files are supported only at 16kHz sample rate. */
81
81
  input_audio_codec?: SarvamAI.InputAudioCodec;
82
+ /**
83
+ * List of up to 50 domain-specific terms (names, places, brands, technical terms) to bias recognition toward. Each keyterm can contain up to 64 characters. Put phrases such as `New Delhi` in one list item; do not send comma-separated terms in one string. Keyterms bias recognition — they do not guarantee that a term will appear in the transcript. **Only supported with `model=saaras:v4`.** Sent as a JSON-encoded array in one multipart form field, e.g. `keyterms=["Sarvam","New Delhi","Vistaar"]`. Do not use the older `keyterm` or `hotwords` fields.
84
+ */
85
+ keyterms?: string[];
82
86
  }
@@ -69,4 +69,8 @@ export interface SpeechToTextJobParameters {
69
69
  num_speakers?: number | undefined;
70
70
  /** Audio codec/format of uploaded files. The API automatically detects most formats; for PCM files (pcm_s16le, pcm_l16, pcm_raw), you must specify this parameter. PCM files are supported only at 16kHz sample rate. */
71
71
  input_audio_codec?: SarvamAI.InputAudioCodec | undefined;
72
+ /**
73
+ * List of up to 50 domain-specific terms (names, places, brands, technical terms) to bias recognition toward. Each keyterm can contain up to 64 characters. Put phrases such as `New Delhi` in one list item; do not send comma-separated terms in one string. Keyterms bias recognition — they do not guarantee that a term will appear in the transcript. **Only supported with `model=saaras:v4`.** Applied while transcribing every audio chunk in the job. Do not use the older `keyterm` or `hotwords` fields.
74
+ */
75
+ keyterms?: string[] | undefined;
72
76
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.1.10-alpha.2";
1
+ export declare const SDK_VERSION = "1.1.10";
@@ -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.10-alpha.2";
4
+ exports.SDK_VERSION = "1.1.10";
@@ -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.10-alpha.2",
10
- "User-Agent": "sarvamai/1.1.10-alpha.2",
9
+ "X-Fern-SDK-Version": "1.1.10",
10
+ "User-Agent": "sarvamai/1.1.10",
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);
@@ -73,6 +73,9 @@ export class SpeechToTextClient {
73
73
  if (request.input_audio_codec != null) {
74
74
  _body.append("input_audio_codec", request.input_audio_codec);
75
75
  }
76
+ if (request.keyterms != null) {
77
+ _body.append("keyterms", JSON.stringify(request.keyterms));
78
+ }
76
79
  const _maybeEncodedRequest = yield _body.getRequest();
77
80
  const _authRequest = yield this._options.authProvider.getAuthRequest();
78
81
  const _headers = mergeHeaders(_authRequest.headers, (_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders(Object.assign({}, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
@@ -79,4 +79,8 @@ export interface SpeechToTextTranscriptionRequest {
79
79
  with_timestamps?: boolean;
80
80
  /** Input Audio codec/format of the input file. PCM files are supported only at 16kHz sample rate. */
81
81
  input_audio_codec?: SarvamAI.InputAudioCodec;
82
+ /**
83
+ * List of up to 50 domain-specific terms (names, places, brands, technical terms) to bias recognition toward. Each keyterm can contain up to 64 characters. Put phrases such as `New Delhi` in one list item; do not send comma-separated terms in one string. Keyterms bias recognition — they do not guarantee that a term will appear in the transcript. **Only supported with `model=saaras:v4`.** Sent as a JSON-encoded array in one multipart form field, e.g. `keyterms=["Sarvam","New Delhi","Vistaar"]`. Do not use the older `keyterm` or `hotwords` fields.
84
+ */
85
+ keyterms?: string[];
82
86
  }
@@ -69,4 +69,8 @@ export interface SpeechToTextJobParameters {
69
69
  num_speakers?: number | undefined;
70
70
  /** Audio codec/format of uploaded files. The API automatically detects most formats; for PCM files (pcm_s16le, pcm_l16, pcm_raw), you must specify this parameter. PCM files are supported only at 16kHz sample rate. */
71
71
  input_audio_codec?: SarvamAI.InputAudioCodec | undefined;
72
+ /**
73
+ * List of up to 50 domain-specific terms (names, places, brands, technical terms) to bias recognition toward. Each keyterm can contain up to 64 characters. Put phrases such as `New Delhi` in one list item; do not send comma-separated terms in one string. Keyterms bias recognition — they do not guarantee that a term will appear in the transcript. **Only supported with `model=saaras:v4`.** Applied while transcribing every audio chunk in the job. Do not use the older `keyterm` or `hotwords` fields.
74
+ */
75
+ keyterms?: string[] | undefined;
72
76
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.1.10-alpha.2";
1
+ export declare const SDK_VERSION = "1.1.10";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.1.10-alpha.2";
1
+ export const SDK_VERSION = "1.1.10";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sarvamai",
3
- "version": "1.1.10-alpha.2",
3
+ "version": "1.1.10",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",