Skip to content

Commit 010fd18

Browse files
committed
Update example import path
1 parent 1eea9e2 commit 010fd18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/getting-started/install.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ LangChain is written in TypeScript and provides type definitions for all of its
3333
LangChain provides an ESM build targeting Node.js environments. You can import it using the following syntax:
3434

3535
```typescript
36-
import { OpenAI } from "langchain";
36+
import { OpenAI } from "langchain/llms";
3737
```
3838

3939
If you are using TypeScript in an ESM project we suggest updating your `tsconfig.json` to include the following:
@@ -53,7 +53,7 @@ If you are using TypeScript in an ESM project we suggest updating your `tsconfig
5353
LangChain provides a CommonJS build targeting Node.js environments. You can import it using the following syntax:
5454

5555
```typescript
56-
const { OpenAI } = require("langchain");
56+
const { OpenAI } = require("langchain/llms");
5757
```
5858

5959
### Other environments

0 commit comments

Comments
 (0)