@google/genai 2.12.0 → 2.13.0
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/genai.d.ts +136 -9
- package/dist/index.cjs +19 -8
- package/dist/index.mjs +19 -8
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +19 -8
- package/dist/node/index.mjs +19 -8
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +136 -9
- package/dist/tokenizer/node.mjs.map +1 -1
- package/dist/vertex_internal/index.cjs +1 -1
- package/dist/vertex_internal/index.cjs.map +1 -1
- package/dist/vertex_internal/index.d.ts +3 -1
- package/dist/vertex_internal/index.js +1 -1
- package/dist/vertex_internal/index.js.map +1 -1
- package/dist/web/index.mjs +19 -8
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +136 -9
- package/package.json +1 -1
package/dist/genai.d.ts
CHANGED
|
@@ -80,6 +80,10 @@ declare type Agent$ = Agent;
|
|
|
80
80
|
* }
|
|
81
81
|
*/
|
|
82
82
|
declare type Agent = {
|
|
83
|
+
/**
|
|
84
|
+
* Configuration parameters for the agent.
|
|
85
|
+
*/
|
|
86
|
+
agent_config?: interactions.AntigravityAgentConfig | undefined;
|
|
83
87
|
/**
|
|
84
88
|
* The base agent to extend.
|
|
85
89
|
*/
|
|
@@ -106,6 +110,11 @@ declare type Agent = {
|
|
|
106
110
|
tools?: Array<AgentTool> | undefined;
|
|
107
111
|
};
|
|
108
112
|
|
|
113
|
+
/**
|
|
114
|
+
* Configuration parameters for the agent.
|
|
115
|
+
*/
|
|
116
|
+
declare type AgentConfig = interactions.AntigravityAgentConfig;
|
|
117
|
+
|
|
109
118
|
declare type AgentCreateParams$ = CreateAgentParams;
|
|
110
119
|
|
|
111
120
|
declare type AgentDeleteParams$ = DeleteAgentParams;
|
|
@@ -150,6 +159,7 @@ declare namespace agents {
|
|
|
150
159
|
export {
|
|
151
160
|
AgentListResponse,
|
|
152
161
|
AgentTool,
|
|
162
|
+
AgentConfig,
|
|
153
163
|
BaseEnvironment,
|
|
154
164
|
Agent
|
|
155
165
|
}
|
|
@@ -284,7 +294,7 @@ declare type Annotation$ = Annotation;
|
|
|
284
294
|
/**
|
|
285
295
|
* Citation information for model-generated content.
|
|
286
296
|
*/
|
|
287
|
-
declare type Annotation = URLCitation | FileCitation | PlaceCitation;
|
|
297
|
+
declare type Annotation = URLCitation | FileCitation | PlaceCitation | WordInfo;
|
|
288
298
|
|
|
289
299
|
declare type AntigravityAgentConfig$ = AntigravityAgentConfig;
|
|
290
300
|
|
|
@@ -307,6 +317,10 @@ declare type AntigravityAgentConfig = {
|
|
|
307
317
|
* Max total tokens for the agent run.
|
|
308
318
|
*/
|
|
309
319
|
max_total_tokens?: string | undefined;
|
|
320
|
+
/**
|
|
321
|
+
* The model to use for agent reasoning.
|
|
322
|
+
*/
|
|
323
|
+
model?: string | undefined;
|
|
310
324
|
type: "antigravity";
|
|
311
325
|
};
|
|
312
326
|
|
|
@@ -744,7 +758,9 @@ export declare interface AudioTranscriptionConfig {
|
|
|
744
758
|
languageAuto?: LanguageAuto;
|
|
745
759
|
/** Specifies one or more languages in the audio. Do not use together with LanguageAuto. */
|
|
746
760
|
languageHints?: LanguageHints;
|
|
747
|
-
/** A list of
|
|
761
|
+
/** A list of custom vocabulary phrases, which biases the ASR model to improve recognition of these specific terms. */
|
|
762
|
+
customVocabulary?: string[];
|
|
763
|
+
/** Deprecated. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms. */
|
|
748
764
|
adaptationPhrases?: string[];
|
|
749
765
|
}
|
|
750
766
|
|
|
@@ -4815,7 +4831,7 @@ declare type FunctionResultStep = {
|
|
|
4815
4831
|
*/
|
|
4816
4832
|
name?: string | undefined;
|
|
4817
4833
|
/**
|
|
4818
|
-
* The result of the tool call.
|
|
4834
|
+
* Required. The result of the tool call.
|
|
4819
4835
|
*/
|
|
4820
4836
|
result: FunctionResultStepResult | Array<FunctionResultSubcontent> | string;
|
|
4821
4837
|
type: "function_result";
|
|
@@ -4824,7 +4840,7 @@ declare type FunctionResultStep = {
|
|
|
4824
4840
|
declare type FunctionResultStepResult = {};
|
|
4825
4841
|
|
|
4826
4842
|
/**
|
|
4827
|
-
* The result of the tool call.
|
|
4843
|
+
* Required. The result of the tool call.
|
|
4828
4844
|
*/
|
|
4829
4845
|
declare type FunctionResultStepResultUnion = FunctionResultStepResult | Array<FunctionResultSubcontent> | string;
|
|
4830
4846
|
|
|
@@ -5644,6 +5660,10 @@ declare type GenerationConfig_2 = {
|
|
|
5644
5660
|
* The maximum cumulative probability of tokens to consider when sampling.
|
|
5645
5661
|
*/
|
|
5646
5662
|
top_p?: number | undefined;
|
|
5663
|
+
/**
|
|
5664
|
+
* Configuration for speech recognition (transcription).
|
|
5665
|
+
*/
|
|
5666
|
+
transcription_config?: TranscriptionConfig | undefined;
|
|
5647
5667
|
/**
|
|
5648
5668
|
* Configuration options for video generation.
|
|
5649
5669
|
*/
|
|
@@ -7606,6 +7626,7 @@ export declare namespace Interactions {
|
|
|
7606
7626
|
export type Tool = Tool$;
|
|
7607
7627
|
export type ToolChoiceConfig = ToolChoiceConfig$;
|
|
7608
7628
|
export type ToolChoiceType = ToolChoiceType$;
|
|
7629
|
+
export type TranscriptionConfig = TranscriptionConfig$;
|
|
7609
7630
|
export type URLCitation = URLCitation$;
|
|
7610
7631
|
export type URLContextCallArguments = URLContextCallArguments$;
|
|
7611
7632
|
export interface URLContextCallStep extends URLContextCallStep$ {
|
|
@@ -7620,6 +7641,7 @@ export declare namespace Interactions {
|
|
|
7620
7641
|
export type VideoContent = VideoContent$;
|
|
7621
7642
|
export type VideoResponseFormat = VideoResponseFormat$;
|
|
7622
7643
|
export type WebhookConfig = WebhookConfig$;
|
|
7644
|
+
export type WordInfo = WordInfo$;
|
|
7623
7645
|
export namespace CodeExecutionCallStep {
|
|
7624
7646
|
export type Arguments = Arguments$;
|
|
7625
7647
|
}
|
|
@@ -7933,6 +7955,7 @@ declare namespace interactions {
|
|
|
7933
7955
|
ToolChoiceConfig,
|
|
7934
7956
|
ToolChoiceType,
|
|
7935
7957
|
Tool_2 as Tool,
|
|
7958
|
+
TranscriptionConfig,
|
|
7936
7959
|
TurnContent,
|
|
7937
7960
|
Turn,
|
|
7938
7961
|
URLCitation,
|
|
@@ -7956,7 +7979,8 @@ declare namespace interactions {
|
|
|
7956
7979
|
VideoResponseFormatAspectRatio,
|
|
7957
7980
|
VideoResponseFormatDelivery,
|
|
7958
7981
|
VideoResponseFormat_2 as VideoResponseFormat,
|
|
7959
|
-
WebhookConfig_2 as WebhookConfig
|
|
7982
|
+
WebhookConfig_2 as WebhookConfig,
|
|
7983
|
+
WordInfo
|
|
7960
7984
|
}
|
|
7961
7985
|
}
|
|
7962
7986
|
|
|
@@ -8028,7 +8052,7 @@ declare type InteractionSSEStreamEvent = {
|
|
|
8028
8052
|
/**
|
|
8029
8053
|
* Required. Output only. The status of the interaction.
|
|
8030
8054
|
*/
|
|
8031
|
-
declare type InteractionStatus = "in_progress" | "requires_action" | "completed" | "failed" | "cancelled" | "incomplete" | "budget_exceeded" | (string & {});
|
|
8055
|
+
declare type InteractionStatus = "in_progress" | "requires_action" | "completed" | "failed" | "cancelled" | "incomplete" | "budget_exceeded" | "queued" | (string & {});
|
|
8032
8056
|
|
|
8033
8057
|
declare type InteractionStatusUpdate$ = InteractionStatusUpdate;
|
|
8034
8058
|
|
|
@@ -8046,7 +8070,7 @@ declare type InteractionStatusUpdate = {
|
|
|
8046
8070
|
status: InteractionStatusUpdateStatus;
|
|
8047
8071
|
};
|
|
8048
8072
|
|
|
8049
|
-
declare type InteractionStatusUpdateStatus = "in_progress" | "requires_action" | "completed" | "failed" | "cancelled" | "incomplete" | "budget_exceeded" | (string & {});
|
|
8073
|
+
declare type InteractionStatusUpdateStatus = "in_progress" | "requires_action" | "completed" | "failed" | "cancelled" | "incomplete" | "budget_exceeded" | "queued" | (string & {});
|
|
8050
8074
|
|
|
8051
8075
|
/** Parameters for the private _Register method. */
|
|
8052
8076
|
export declare interface InternalRegisterFilesParameters {
|
|
@@ -9518,7 +9542,7 @@ declare type MCPServerToolResultStep = {
|
|
|
9518
9542
|
*/
|
|
9519
9543
|
name?: string | undefined;
|
|
9520
9544
|
/**
|
|
9521
|
-
* The output from the MCP server call. Can be simple text or rich content.
|
|
9545
|
+
* Required. The output from the MCP server call. Can be simple text or rich content.
|
|
9522
9546
|
*/
|
|
9523
9547
|
result: MCPServerToolResultStepResult | string | Array<FunctionResultSubcontent>;
|
|
9524
9548
|
/**
|
|
@@ -9531,7 +9555,7 @@ declare type MCPServerToolResultStep = {
|
|
|
9531
9555
|
declare type MCPServerToolResultStepResult = {};
|
|
9532
9556
|
|
|
9533
9557
|
/**
|
|
9534
|
-
* The output from the MCP server call. Can be simple text or rich content.
|
|
9558
|
+
* Required. The output from the MCP server call. Can be simple text or rich content.
|
|
9535
9559
|
*/
|
|
9536
9560
|
declare type MCPServerToolResultStepResultUnion = MCPServerToolResultStepResult | string | Array<FunctionResultSubcontent>;
|
|
9537
9561
|
|
|
@@ -13259,6 +13283,53 @@ export declare interface Transcription {
|
|
|
13259
13283
|
languageCode?: string;
|
|
13260
13284
|
}
|
|
13261
13285
|
|
|
13286
|
+
declare type TranscriptionConfig$ = TranscriptionConfig;
|
|
13287
|
+
|
|
13288
|
+
/**
|
|
13289
|
+
* @license
|
|
13290
|
+
* Copyright 2026 Google LLC
|
|
13291
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
13292
|
+
*
|
|
13293
|
+
* g3-prettier-ignore-file
|
|
13294
|
+
*/
|
|
13295
|
+
/**
|
|
13296
|
+
* Configuration for speech recognition (transcription).
|
|
13297
|
+
*/
|
|
13298
|
+
declare type TranscriptionConfig = {
|
|
13299
|
+
/**
|
|
13300
|
+
* Optional. A list of phrases to bias the ASR model towards.
|
|
13301
|
+
*
|
|
13302
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
13303
|
+
*/
|
|
13304
|
+
adaptation_phrases?: Array<string> | undefined;
|
|
13305
|
+
/**
|
|
13306
|
+
* Optional. A list of custom vocabulary phrases to bias the speech recognition model
|
|
13307
|
+
*
|
|
13308
|
+
* @remarks
|
|
13309
|
+
* toward recognizing specific terms.
|
|
13310
|
+
*/
|
|
13311
|
+
custom_vocabulary?: Array<string> | undefined;
|
|
13312
|
+
/**
|
|
13313
|
+
* Optional. Configures speaker diarization. Supported values: "speaker".
|
|
13314
|
+
*/
|
|
13315
|
+
diarization_mode?: string | undefined;
|
|
13316
|
+
/**
|
|
13317
|
+
* Required. BCP-47 language codes providing hints about the languages present in the
|
|
13318
|
+
*
|
|
13319
|
+
* @remarks
|
|
13320
|
+
* audio. At least one must be specified, or set to ["auto"] to enable
|
|
13321
|
+
* automatic language detection.
|
|
13322
|
+
*/
|
|
13323
|
+
language_hints: Array<string>;
|
|
13324
|
+
/**
|
|
13325
|
+
* Optional. The granularity of timestamps to include in the transcription output.
|
|
13326
|
+
*
|
|
13327
|
+
* @remarks
|
|
13328
|
+
* Supported values: "word". If empty, no timestamps are generated.
|
|
13329
|
+
*/
|
|
13330
|
+
timestamp_granularities?: Array<string> | undefined;
|
|
13331
|
+
};
|
|
13332
|
+
|
|
13262
13333
|
/**
|
|
13263
13334
|
* @license
|
|
13264
13335
|
* Copyright 2026 Google LLC
|
|
@@ -16003,4 +16074,60 @@ export declare interface WhiteSpaceConfig {
|
|
|
16003
16074
|
maxOverlapTokens?: number;
|
|
16004
16075
|
}
|
|
16005
16076
|
|
|
16077
|
+
declare type WordInfo$ = WordInfo;
|
|
16078
|
+
|
|
16079
|
+
/**
|
|
16080
|
+
* @license
|
|
16081
|
+
* Copyright 2026 Google LLC
|
|
16082
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
16083
|
+
*
|
|
16084
|
+
* g3-prettier-ignore-file
|
|
16085
|
+
*/
|
|
16086
|
+
/**
|
|
16087
|
+
* Word-level ASR annotation for transcription output.
|
|
16088
|
+
*
|
|
16089
|
+
* @remarks
|
|
16090
|
+
* Carries the word text, optional timing, and optional speaker attribution.
|
|
16091
|
+
*/
|
|
16092
|
+
declare type WordInfo = {
|
|
16093
|
+
/**
|
|
16094
|
+
* End of the attributed segment, exclusive.
|
|
16095
|
+
*/
|
|
16096
|
+
end_index?: number | undefined;
|
|
16097
|
+
/**
|
|
16098
|
+
* End offset in time of the word relative to the start of the audio.
|
|
16099
|
+
*
|
|
16100
|
+
* @remarks
|
|
16101
|
+
* Present when timestamp_granularities contains "word".
|
|
16102
|
+
*/
|
|
16103
|
+
end_offset?: string | undefined;
|
|
16104
|
+
/**
|
|
16105
|
+
* Optional. Speaker label for this word (e.g. "spk_1", "spk_2").
|
|
16106
|
+
*
|
|
16107
|
+
* @remarks
|
|
16108
|
+
* Present when diarization_mode is set in TranscriptionConfig.
|
|
16109
|
+
*/
|
|
16110
|
+
speaker?: string | undefined;
|
|
16111
|
+
/**
|
|
16112
|
+
* Start of segment of the response that is attributed to this source.
|
|
16113
|
+
*
|
|
16114
|
+
* @remarks
|
|
16115
|
+
*
|
|
16116
|
+
* Index indicates the start of the segment, measured in bytes.
|
|
16117
|
+
*/
|
|
16118
|
+
start_index?: number | undefined;
|
|
16119
|
+
/**
|
|
16120
|
+
* Start offset in time of the word relative to the start of the audio.
|
|
16121
|
+
*
|
|
16122
|
+
* @remarks
|
|
16123
|
+
* Present when timestamp_granularities contains "word".
|
|
16124
|
+
*/
|
|
16125
|
+
start_offset?: string | undefined;
|
|
16126
|
+
/**
|
|
16127
|
+
* The transcribed word.
|
|
16128
|
+
*/
|
|
16129
|
+
text?: string | undefined;
|
|
16130
|
+
type: "word_info";
|
|
16131
|
+
};
|
|
16132
|
+
|
|
16006
16133
|
export { }
|
package/dist/index.cjs
CHANGED
|
@@ -7929,7 +7929,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
7929
7929
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
7930
7930
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
7931
7931
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
7932
|
-
const SDK_VERSION = '2.
|
|
7932
|
+
const SDK_VERSION = '2.13.0'; // x-release-please-version
|
|
7933
7933
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
7934
7934
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
7935
7935
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|
|
@@ -10440,7 +10440,7 @@ function serverURLFromOptions(options) {
|
|
|
10440
10440
|
return new URL(u);
|
|
10441
10441
|
}
|
|
10442
10442
|
const SDK_METADATA = {
|
|
10443
|
-
userAgent: "speakeasy-sdk/typescript 2.4.1-preview.4 2.
|
|
10443
|
+
userAgent: "speakeasy-sdk/typescript 2.4.1-preview.4 2.918.3 v1beta @google/genai",
|
|
10444
10444
|
};
|
|
10445
10445
|
|
|
10446
10446
|
/**
|
|
@@ -10741,10 +10741,10 @@ const DEFAULT_FETCHER = (input, init) => {
|
|
|
10741
10741
|
};
|
|
10742
10742
|
class HTTPClient {
|
|
10743
10743
|
constructor(options = {}) {
|
|
10744
|
-
this.options = options;
|
|
10745
10744
|
this.requestHooks = [];
|
|
10746
10745
|
this.requestErrorHooks = [];
|
|
10747
10746
|
this.responseHooks = [];
|
|
10747
|
+
this.options = options;
|
|
10748
10748
|
this.fetcher = options.fetcher || DEFAULT_FETCHER;
|
|
10749
10749
|
}
|
|
10750
10750
|
async request(request) {
|
|
@@ -11848,11 +11848,10 @@ function unpackHeaders(headers) {
|
|
|
11848
11848
|
*
|
|
11849
11849
|
* g3-prettier-ignore-file
|
|
11850
11850
|
*/
|
|
11851
|
-
|
|
11852
|
-
|
|
11853
|
-
|
|
11854
|
-
|
|
11855
|
-
})(SecurityErrorCode || (SecurityErrorCode = {}));
|
|
11851
|
+
const SecurityErrorCode = {
|
|
11852
|
+
Incomplete: "incomplete",
|
|
11853
|
+
UnrecognisedSecurityType: "unrecognized_security_type",
|
|
11854
|
+
};
|
|
11856
11855
|
class SecurityError extends Error {
|
|
11857
11856
|
constructor(code, message) {
|
|
11858
11857
|
super(message);
|
|
@@ -14833,6 +14832,12 @@ function audioTranscriptionConfigToMldev$1(fromObject) {
|
|
|
14833
14832
|
if (fromLanguageHints != null) {
|
|
14834
14833
|
setValueByPath(toObject, ['languageHints'], fromLanguageHints);
|
|
14835
14834
|
}
|
|
14835
|
+
const fromCustomVocabulary = getValueByPath(fromObject, [
|
|
14836
|
+
'customVocabulary',
|
|
14837
|
+
]);
|
|
14838
|
+
if (fromCustomVocabulary != null) {
|
|
14839
|
+
setValueByPath(toObject, ['customVocabulary'], fromCustomVocabulary);
|
|
14840
|
+
}
|
|
14836
14841
|
const fromAdaptationPhrases = getValueByPath(fromObject, [
|
|
14837
14842
|
'adaptationPhrases',
|
|
14838
14843
|
]);
|
|
@@ -22617,6 +22622,12 @@ function audioTranscriptionConfigToMldev(fromObject) {
|
|
|
22617
22622
|
if (fromLanguageHints != null) {
|
|
22618
22623
|
setValueByPath(toObject, ['languageHints'], fromLanguageHints);
|
|
22619
22624
|
}
|
|
22625
|
+
const fromCustomVocabulary = getValueByPath(fromObject, [
|
|
22626
|
+
'customVocabulary',
|
|
22627
|
+
]);
|
|
22628
|
+
if (fromCustomVocabulary != null) {
|
|
22629
|
+
setValueByPath(toObject, ['customVocabulary'], fromCustomVocabulary);
|
|
22630
|
+
}
|
|
22620
22631
|
const fromAdaptationPhrases = getValueByPath(fromObject, [
|
|
22621
22632
|
'adaptationPhrases',
|
|
22622
22633
|
]);
|
package/dist/index.mjs
CHANGED
|
@@ -7927,7 +7927,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
7927
7927
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
7928
7928
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
7929
7929
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
7930
|
-
const SDK_VERSION = '2.
|
|
7930
|
+
const SDK_VERSION = '2.13.0'; // x-release-please-version
|
|
7931
7931
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
7932
7932
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
7933
7933
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|
|
@@ -10438,7 +10438,7 @@ function serverURLFromOptions(options) {
|
|
|
10438
10438
|
return new URL(u);
|
|
10439
10439
|
}
|
|
10440
10440
|
const SDK_METADATA = {
|
|
10441
|
-
userAgent: "speakeasy-sdk/typescript 2.4.1-preview.4 2.
|
|
10441
|
+
userAgent: "speakeasy-sdk/typescript 2.4.1-preview.4 2.918.3 v1beta @google/genai",
|
|
10442
10442
|
};
|
|
10443
10443
|
|
|
10444
10444
|
/**
|
|
@@ -10739,10 +10739,10 @@ const DEFAULT_FETCHER = (input, init) => {
|
|
|
10739
10739
|
};
|
|
10740
10740
|
class HTTPClient {
|
|
10741
10741
|
constructor(options = {}) {
|
|
10742
|
-
this.options = options;
|
|
10743
10742
|
this.requestHooks = [];
|
|
10744
10743
|
this.requestErrorHooks = [];
|
|
10745
10744
|
this.responseHooks = [];
|
|
10745
|
+
this.options = options;
|
|
10746
10746
|
this.fetcher = options.fetcher || DEFAULT_FETCHER;
|
|
10747
10747
|
}
|
|
10748
10748
|
async request(request) {
|
|
@@ -11846,11 +11846,10 @@ function unpackHeaders(headers) {
|
|
|
11846
11846
|
*
|
|
11847
11847
|
* g3-prettier-ignore-file
|
|
11848
11848
|
*/
|
|
11849
|
-
|
|
11850
|
-
|
|
11851
|
-
|
|
11852
|
-
|
|
11853
|
-
})(SecurityErrorCode || (SecurityErrorCode = {}));
|
|
11849
|
+
const SecurityErrorCode = {
|
|
11850
|
+
Incomplete: "incomplete",
|
|
11851
|
+
UnrecognisedSecurityType: "unrecognized_security_type",
|
|
11852
|
+
};
|
|
11854
11853
|
class SecurityError extends Error {
|
|
11855
11854
|
constructor(code, message) {
|
|
11856
11855
|
super(message);
|
|
@@ -14831,6 +14830,12 @@ function audioTranscriptionConfigToMldev$1(fromObject) {
|
|
|
14831
14830
|
if (fromLanguageHints != null) {
|
|
14832
14831
|
setValueByPath(toObject, ['languageHints'], fromLanguageHints);
|
|
14833
14832
|
}
|
|
14833
|
+
const fromCustomVocabulary = getValueByPath(fromObject, [
|
|
14834
|
+
'customVocabulary',
|
|
14835
|
+
]);
|
|
14836
|
+
if (fromCustomVocabulary != null) {
|
|
14837
|
+
setValueByPath(toObject, ['customVocabulary'], fromCustomVocabulary);
|
|
14838
|
+
}
|
|
14834
14839
|
const fromAdaptationPhrases = getValueByPath(fromObject, [
|
|
14835
14840
|
'adaptationPhrases',
|
|
14836
14841
|
]);
|
|
@@ -22615,6 +22620,12 @@ function audioTranscriptionConfigToMldev(fromObject) {
|
|
|
22615
22620
|
if (fromLanguageHints != null) {
|
|
22616
22621
|
setValueByPath(toObject, ['languageHints'], fromLanguageHints);
|
|
22617
22622
|
}
|
|
22623
|
+
const fromCustomVocabulary = getValueByPath(fromObject, [
|
|
22624
|
+
'customVocabulary',
|
|
22625
|
+
]);
|
|
22626
|
+
if (fromCustomVocabulary != null) {
|
|
22627
|
+
setValueByPath(toObject, ['customVocabulary'], fromCustomVocabulary);
|
|
22628
|
+
}
|
|
22618
22629
|
const fromAdaptationPhrases = getValueByPath(fromObject, [
|
|
22619
22630
|
'adaptationPhrases',
|
|
22620
22631
|
]);
|