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 Versions

134

0.14.1

Diff

Changelog

Source

0.14.1

Patch Changes

  • 0c23bb3: Add CodeExecutionTool to Tool type.
google-wombot
published 0.14.0 •

Changelog

Source

0.14.0

Minor Changes

  • fb1c0f2: Add a cachedContentTokenCount field to the UsageMetadata interface returned by generateContent responses.
  • 06216be: Add code execution feature.
google-wombot
published 0.13.0 •

Changelog

Source

0.13.0

Minor Changes

  • 83ec4ac: Expand the model's countTokens method to alternatively accept a GenerateContentRequest.
  • 5df61d1: Added GoogleAICacheManager utility to allow caching large content to be used in inference. This class is exported from the @google/generative-ai/server subpath. Breaking change: The GoogleAIFileManager class has been moved to be exported from this subpath as well instead of the /files subpath.

Patch Changes

  • 1440a05: Removed the model field from the internally formatted payload of countToken requests as it was unnecessary.
  • 03eb57b: Fix missing usageMetadata in streamed aggregated response (#174)
google-wombot
published 0.12.0 •

Changelog

Source

0.12.0

Minor Changes

  • 85ff2c4: Added responseSchema to GenerationConfig to allow user to provide a JSON schema when responseMimeType is set to JSON.
google-wombot
published 0.11.5 •

Changelog

Source

0.11.5

Patch Changes

  • 42ba6ca: Fix paths to @google/generative-ai/files.
google-wombot
published 0.11.4 •

Changelog

Source

0.11.4

Patch Changes

  • ee02ff0: Add additional properties videoMetadata and error to FileMetadataResponse type.
google-wombot
published 0.11.3 •

Changelog

Source

0.11.3

Patch Changes

  • c7c0b50: Fixed FileState enum values to be strings.
google-wombot
published 0.11.2 •

Changelog

Source

0.11.2

Patch Changes

  • cefa8f2: Lifted a restriction in chat sessions that required a specific order of content roles.
google-wombot
published 0.11.1 •

Changelog

Source

0.11.1

Patch Changes

  • 819501f: Fix a bug that caused file uploads to be named "undefined" if no file name is provided.
google-wombot
published 0.11.0 •

Changelog

Source

0.11.0

Minor Changes

  • 58ab777: Added responseMimeType to GenerationConfig to allow for JSON formatted responses.

Patch Changes

  • c39015c: Fixed a bug where text() did not handle multiple TextParts in a single candidate. Added state field to FileMetadataResponse.
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