Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@google/generative-ai

Package Overview
Dependencies
Maintainers
4
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google/generative-ai - npm Package Compare versions

Comparing version 0.16.0 to 0.16.1

6

CHANGELOG.md
# @google/generative-ai
## 0.16.1
### Patch Changes
- fdfb5bd: Fix reference to `requestOptions` in `startChat`.
## 0.16.0

@@ -4,0 +10,0 @@

1

dist/generative-ai.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc