@google-ai/generativelanguage
Advanced tools
Comparing version 2.4.0 to 2.5.0
@@ -36,3 +36,3 @@ { | ||
"GenerateContent": { | ||
"timeout_millis": 60000, | ||
"timeout_millis": 600000, | ||
"retry_codes_name": "unavailable", | ||
@@ -42,3 +42,3 @@ "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" | ||
"StreamGenerateContent": { | ||
"timeout_millis": 60000, | ||
"timeout_millis": 600000, | ||
"retry_codes_name": "unavailable", | ||
@@ -45,0 +45,0 @@ "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" |
@@ -121,2 +121,7 @@ import type * as gax from 'google-gax'; | ||
* | ||
* Input capabilities differ between models, including tuned models. See the | ||
* [model guide](https://ai.google.dev/models/gemini) and | ||
* [tuning guide](https://ai.google.dev/docs/model_tuning_guidance) for | ||
* details. | ||
* | ||
* @param {Object} request | ||
@@ -193,3 +198,4 @@ * The request object that will be sent. | ||
* excessive values in the output embedding are truncated from the end. | ||
* Supported by `models/text-embedding-latest`. | ||
* Supported by newer models since 2024, and the earlier model | ||
* (`models/embedding-001`) cannot specify this value. | ||
* @param {object} [options] | ||
@@ -255,4 +261,8 @@ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* Format: `models/{model}` | ||
* @param {number[]} request.contents | ||
* Required. The input given to the model as a prompt. | ||
* @param {number[]} [request.contents] | ||
* Optional. The input given to the model as a prompt. This field is ignored | ||
* when `generate_content_request` is set. | ||
* @param {google.ai.generativelanguage.v1.GenerateContentRequest} [request.generateContentRequest] | ||
* Optional. The overall input given to the model. CountTokens will count | ||
* prompt, function calling, etc. | ||
* @param {object} [options] | ||
@@ -259,0 +269,0 @@ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. |
@@ -158,4 +158,3 @@ "use strict"; | ||
this.descriptors.stream = { | ||
streamGenerateContent: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, | ||
/* gaxStreamingRetries: */ false), | ||
streamGenerateContent: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, !!opts.gaxServerStreamingRetries), | ||
}; | ||
@@ -162,0 +161,0 @@ // Put together the default options sent with requests. |
@@ -36,3 +36,3 @@ { | ||
"GenerateContent": { | ||
"timeout_millis": 60000, | ||
"timeout_millis": 600000, | ||
"retry_codes_name": "unavailable", | ||
@@ -47,3 +47,3 @@ "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" | ||
"StreamGenerateContent": { | ||
"timeout_millis": 60000, | ||
"timeout_millis": 600000, | ||
"retry_codes_name": "unavailable", | ||
@@ -50,0 +50,0 @@ "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" |
@@ -335,3 +335,4 @@ import type * as gax from 'google-gax'; | ||
* @param {number[]} [request.contents] | ||
* Optional. The input given to the model as a prompt. | ||
* Optional. The input given to the model as a prompt. This field is ignored | ||
* when `generate_content_request` is set. | ||
* @param {google.ai.generativelanguage.v1beta.GenerateContentRequest} [request.generateContentRequest] | ||
@@ -338,0 +339,0 @@ * Optional. The overall input given to the model. CountTokens will count |
@@ -165,4 +165,3 @@ "use strict"; | ||
this.descriptors.stream = { | ||
streamGenerateContent: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, | ||
/* gaxStreamingRetries: */ false), | ||
streamGenerateContent: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, !!opts.gaxServerStreamingRetries), | ||
}; | ||
@@ -169,0 +168,0 @@ // Put together the default options sent with requests. |
# Changelog | ||
## [2.5.0](https://github.com/googleapis/google-cloud-node/compare/generativelanguage-v2.4.0...generativelanguage-v2.5.0) (2024-05-21) | ||
### Features | ||
* [generativelanguage] Add video metadata to files API ([#5359](https://github.com/googleapis/google-cloud-node/issues/5359)) ([4185d57](https://github.com/googleapis/google-cloud-node/commit/4185d574058dea56f118cf019cd28adf89c7b5a9)) | ||
* [Many APIs] update Nodejs generator to send API versions in headers for GAPICs ([#5350](https://github.com/googleapis/google-cloud-node/issues/5350)) ([6c03873](https://github.com/googleapis/google-cloud-node/commit/6c038731de1f36456042e6b4ecf2a9686be662c7)) | ||
* [Many APIs] update Nodejs generator to send API versions in headers for GAPICs ([#5351](https://github.com/googleapis/google-cloud-node/issues/5351)) ([01f48fc](https://github.com/googleapis/google-cloud-node/commit/01f48fce63ec4ddf801d59ee2b8c0db9f6fb8372)) | ||
* [Many APIs] update Nodejs generator to send API versions in headers for GAPICs ([#5354](https://github.com/googleapis/google-cloud-node/issues/5354)) ([a9784ed](https://github.com/googleapis/google-cloud-node/commit/a9784ed3db6ee96d171762308bbbcd57390b6866)) | ||
## [2.4.0](https://github.com/googleapis/google-cloud-node/compare/generativelanguage-v2.3.0...generativelanguage-v2.4.0) (2024-05-08) | ||
@@ -4,0 +14,0 @@ |
{ | ||
"name": "@google-ai/generativelanguage", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"description": "Generative Language API client for Node.js", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9119695
59223