@google/genai 2.2.0 → 2.4.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/README.md +4 -1
- package/dist/genai.d.ts +384 -35
- package/dist/index.cjs +220 -88
- package/dist/index.mjs +220 -88
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +220 -88
- package/dist/node/index.mjs +220 -88
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +384 -35
- 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 +14 -0
- package/dist/vertex_internal/index.js +1 -1
- package/dist/vertex_internal/index.js.map +1 -1
- package/dist/web/index.mjs +220 -88
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +384 -35
- package/package.json +1 -1
|
@@ -4767,6 +4767,8 @@ declare interface LiveConnectConfig {
|
|
|
4767
4767
|
response.
|
|
4768
4768
|
*/
|
|
4769
4769
|
safetySettings?: SafetySetting[];
|
|
4770
|
+
/** Config for stream translation. */
|
|
4771
|
+
streamTranslationConfig?: StreamTranslationConfig;
|
|
4770
4772
|
}
|
|
4771
4773
|
|
|
4772
4774
|
/** Config for LiveConnectConstraints for Auth Token creation. */
|
|
@@ -6533,6 +6535,17 @@ declare interface StreamableHttpTransport {
|
|
|
6533
6535
|
url?: string;
|
|
6534
6536
|
}
|
|
6535
6537
|
|
|
6538
|
+
/** Config for stream translation. */
|
|
6539
|
+
declare interface StreamTranslationConfig {
|
|
6540
|
+
/** If true, the model will generate audio when the target language is
|
|
6541
|
+
spoken, essentially it will parrot the input. If false, we will not produce
|
|
6542
|
+
audio for the target language. */
|
|
6543
|
+
echoTargetLanguage?: boolean;
|
|
6544
|
+
/** The target language for translation. Supported values are BCP-47
|
|
6545
|
+
language codes (e.g. "en", "es", "fr"). */
|
|
6546
|
+
targetLanguageCode?: string;
|
|
6547
|
+
}
|
|
6548
|
+
|
|
6536
6549
|
/** User provided string values assigned to a single metadata key. This data type is not supported in Vertex AI. */
|
|
6537
6550
|
declare interface StringList {
|
|
6538
6551
|
/** The string values of the metadata to store. */
|
|
@@ -7789,6 +7802,7 @@ declare namespace types {
|
|
|
7789
7802
|
LiveClientRealtimeInput,
|
|
7790
7803
|
LiveClientToolResponse,
|
|
7791
7804
|
LiveClientMessage,
|
|
7805
|
+
StreamTranslationConfig,
|
|
7792
7806
|
LiveConnectConfig,
|
|
7793
7807
|
LiveConnectParameters,
|
|
7794
7808
|
CreateChatParameters,
|
|
@@ -2050,7 +2050,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
2050
2050
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
2051
2051
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
2052
2052
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
2053
|
-
const SDK_VERSION = '2.
|
|
2053
|
+
const SDK_VERSION = '2.4.0'; // x-release-please-version
|
|
2054
2054
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
2055
2055
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
2056
2056
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|