File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ for complete code.
34
34
npm install @google/ generative- ai
35
35
```
36
36
37
- 1 . Initialize the model
37
+ 2 . Initialize the model
38
38
39
39
``` js
40
40
import { GoogleGenerativeAI } from " @google/generative-ai" ;
@@ -44,7 +44,7 @@ const genAI = new GoogleGenerativeAI(process.env.API_KEY);
44
44
const model = genAI .getGenerativeModel ({ model: " gemini-1.5-flash" });
45
45
```
46
46
47
- 1 . Run a prompt
47
+ 3 . Run a prompt
48
48
49
49
``` js
50
50
const prompt = " Does this look store-bought or homemade?" ;
@@ -95,4 +95,4 @@ to the Google AI JavaScript SDK.
95
95
## License
96
96
97
97
The contents of this repository are licensed under the
98
- [ Apache License, version 2.0] ( http://www.apache.org/licenses/LICENSE-2.0 ) .
98
+ [ Apache License, version 2.0] ( http://www.apache.org/licenses/LICENSE-2.0 ) .
You can’t perform that action at this time.
0 commit comments