aiagent.club
中文
npm package

@langchain/openai

Updated 2026-09-12 View source ↗

#12 of 203 by Downloads / week among npm packages

2.7M Downloads / week

OpenAI integrations for LangChain.js

About

This package contains the LangChain.js integrations for OpenAI through their SDK.

This package, along with the main LangChain package, depends on @langchain/core. If you are using this package with other LangChain packages, you should make sure that all of the packages depend on the same instance of @langchain/core. You can do so by adding appropriate fields to your project's package.json like this:

The field you need depends on the package manager you're using, but we recommend adding a field for the common pnpm, npm, and yarn to maximize compatibility.

This package contains the ChatOpenAI class, which is the recommended way to interface with the OpenAI series of models.

To use,…

Excerpted from www.npmjs.com/package/@langchain/openai

Latest metrics

Downloads / week 2.7M 2026-09-12