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

124

0.10.0

Diff

Changelog

Source

0.10.0

Minor Changes

  • 657799a: Added UsageMetadata to GenerateContentResponses.
  • 4562366: Add a request option for custom headers
google-wombot
published 0.9.0 •

Changelog

Source

0.9.0

Minor Changes

  • ca62400: Allow text-only systemInstruction as well as Part and Content.
  • 111e970: Export error classes and add more properties to fetch errors.
google-wombot
published 0.8.0 •

Changelog

Source

0.8.0

Minor Changes

  • a89d427: Add GoogleAIFileManager for file uploads.
google-wombot
published 0.7.1 •

Changelog

Source

0.7.1

Patch Changes

  • 6ef8cee: Fixed bugs where RequestOptions, generationConfig, and safetySettings were not passed from the model down to some methods.
google-wombot
published 0.7.0 •

Changelog

Source

0.7.0

Minor Changes

  • 79b7651: Set default API version to "v1beta" to match Go and Python.
google-wombot
published 0.6.0 •

Changelog

Source

0.6.0

Minor Changes

  • 2a1f97c: Add systemInstruction feature and forced function calling feature (using toolConfig).

Patch Changes

  • 0931d2c: Refactor makeRequest to make fetch mockable.
google-wombot
published 0.5.0 •

Changelog

Source

0.5.0

Minor Changes

  • 658a0da: Add apiClient configuration option to RequestOptions.
google-wombot
published 0.4.0 •

Changelog

Source

0.4.0

Minor Changes

  • 790a943: Deprecate functionCall() and add functionCalls().
  • e636823: Loosen role field typing on Content.
  • 7a45f01: Add option in RequestOptions to change baseUrl.

Patch Changes

  • 3f95168: Fix requestOptions not being passed through countTokens, embedContent, and batchEmbedContents
google-wombot
published 0.3.1 •

Changelog

Source

0.3.1

Patch Changes

  • ccd9951: validateChatHistory is now checking that 'parts' property is an array
google-wombot
published 0.3.0 •

Changelog

Source

0.3.0

Minor Changes

  • 932e1be: Add apiVersion property to RequestOptions to allow user to choose API endpoint version.
  • 9887465: Added support for function calling
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