Skip to content

Commit 6e822cd

Browse files
authored
fix: Add missing fs import for file handling (#424)
* fix: Add missing fs import for file handling * refactor: change fs import style to ES module syntax
1 parent 0baf001 commit 6e822cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const model = genAI.getGenerativeModel({ model: "gemini-1.5-flash" });
5252
3. Run a prompt
5353

5454
```js
55+
import * as fs from 'fs';
5556
const prompt = "Does this look store-bought or homemade?";
5657
const image = {
5758
inlineData: {

0 commit comments

Comments
 (0)