Skip to content

Commit 2fa63b6

Browse files
fixed the import statement for the GoogleGenerativeAI module in readme (#408)
Fixes #408
1 parent d73de90 commit 2fa63b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ npm install @google/generative-ai
3737
1. Initialize the model
3838

3939
```js
40-
const { GoogleGenerativeAI } = require("@google/generative-ai");
40+
import { GoogleGenerativeAI } from "@google/generative-ai";
4141

4242
const genAI = new GoogleGenerativeAI(process.env.API_KEY);
4343

0 commit comments

Comments
 (0)