aiagent.club
English
npm 包

@google/genai

更新于 2026-09-12 查看源 ↗

在全部 npm 包 中按周下载量排名第 5(共 203)

18.0M 周下载量

[![NPM Downloads](https://img.shields.io/npm/dw/%40google%2Fgenai)](https://www.npmjs.com/package/@google/genai) [![Node Current](https://img.shields.io/node/v/%40google%2Fgenai)](https://www.npmjs.com/package/@google/genai)

项目介绍

The Google Gen AI JavaScript SDK is designed for TypeScript and JavaScript developers to build applications powered by Gemini. The SDK supports both the Gemini Developer API and Gemini Enterprise Agent Platform.

Upcoming Breaking Change to Automatic Function Calling (AFC): We will introduce a breaking change to the Automatic Function Calling (AFC) feature in the next major version. Specifically, users will not be able to invoke AFC from direct calls to Models.generatecontent or its stream variants. Instead, users should invoke AFC from chats modules.

The Google Gen AI SDK is designed to work with Gemini 2.0+ features.

API Key Security: Avoid exposing API keys in client-side code. Use…

摘自 www.npmjs.com/package/@google/genai

最新指标

周下载量 18.0M 2026-09-12