File tree 1 file changed +2
-2
lines changed
docs/docs/getting-started
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ LangChain is written in TypeScript and provides type definitions for all of its
33
33
LangChain provides an ESM build targeting Node.js environments. You can import it using the following syntax:
34
34
35
35
``` typescript
36
- import { OpenAI } from " langchain" ;
36
+ import { OpenAI } from " langchain/llms " ;
37
37
```
38
38
39
39
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
53
53
LangChain provides a CommonJS build targeting Node.js environments. You can import it using the following syntax:
54
54
55
55
``` typescript
56
- const { OpenAI } = require (" langchain" );
56
+ const { OpenAI } = require (" langchain/llms " );
57
57
```
58
58
59
59
### Other environments
You can’t perform that action at this time.
0 commit comments