@google/generative-ai
Advanced tools
Comparing version 0.16.0 to 0.16.1
# @google/generative-ai | ||
## 0.16.1 | ||
### Patch Changes | ||
- fdfb5bd: Fix reference to `requestOptions` in `startChat`. | ||
## 0.16.0 | ||
@@ -4,0 +10,0 @@ |
@@ -660,3 +660,2 @@ /** | ||
safetySettings: SafetySetting[]; | ||
requestOptions: RequestOptions; | ||
tools?: Tool[]; | ||
@@ -663,0 +662,0 @@ toolConfig?: ToolConfig; |
@@ -286,3 +286,3 @@ 'use strict'; | ||
*/ | ||
const PACKAGE_VERSION = "0.16.0"; | ||
const PACKAGE_VERSION = "0.16.1"; | ||
const PACKAGE_LOG_HEADER = "genai-js"; | ||
@@ -1321,3 +1321,3 @@ var Task; | ||
var _a; | ||
return new ChatSession(this.apiKey, this.model, Object.assign({ generationConfig: this.generationConfig, safetySettings: this.safetySettings, tools: this.tools, toolConfig: this.toolConfig, systemInstruction: this.systemInstruction, cachedContent: (_a = this.cachedContent) === null || _a === void 0 ? void 0 : _a.name }, startChatParams), this.requestOptions); | ||
return new ChatSession(this.apiKey, this.model, Object.assign({ generationConfig: this.generationConfig, safetySettings: this.safetySettings, tools: this.tools, toolConfig: this.toolConfig, systemInstruction: this.systemInstruction, cachedContent: (_a = this.cachedContent) === null || _a === void 0 ? void 0 : _a.name }, startChatParams), this._requestOptions); | ||
} | ||
@@ -1324,0 +1324,0 @@ /** |
@@ -72,3 +72,3 @@ 'use strict'; | ||
*/ | ||
const PACKAGE_VERSION = "0.16.0"; | ||
const PACKAGE_VERSION = "0.16.1"; | ||
const PACKAGE_LOG_HEADER = "genai-js"; | ||
@@ -75,0 +75,0 @@ var Task; |
@@ -29,3 +29,2 @@ /** | ||
safetySettings: SafetySetting[]; | ||
requestOptions: RequestOptions; | ||
tools?: Tool[]; | ||
@@ -32,0 +31,0 @@ toolConfig?: ToolConfig; |
@@ -29,3 +29,2 @@ /** | ||
safetySettings: SafetySetting[]; | ||
requestOptions: RequestOptions; | ||
tools?: Tool[]; | ||
@@ -32,0 +31,0 @@ toolConfig?: ToolConfig; |
{ | ||
"name": "@google/generative-ai", | ||
"version": "0.16.0", | ||
"version": "0.16.1", | ||
"description": "Google AI JavaScript SDK", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -62,3 +62,2 @@ /** | ||
safetySettings: SafetySetting[]; | ||
requestOptions: RequestOptions; | ||
tools?: Tool[]; | ||
@@ -176,3 +175,3 @@ toolConfig?: ToolConfig; | ||
}, | ||
this.requestOptions, | ||
this._requestOptions, | ||
); | ||
@@ -179,0 +178,0 @@ } |
@@ -478,4 +478,2 @@ ## API Report File for "@google/generative-ai" | ||
// (undocumented) | ||
requestOptions: RequestOptions; | ||
// (undocumented) | ||
safetySettings: SafetySetting[]; | ||
@@ -482,0 +480,0 @@ startChat(startChatParams?: StartChatParams): ChatSession; |
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
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
1584431
34405