Skip to content

Commit ba98d6c

Browse files
committed
fix typo, update readme with usage
1 parent 3f14027 commit ba98d6c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,14 @@ export function Altair() {
8484
}
8585
```
8686

87+
## Usage
88+
89+
Add your Gemini API key to `.env` then:
90+
91+
```
92+
$ npm install && npm start
93+
```
94+
8795
## development
8896

8997
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import cn from "classnames";
2424

2525
const API_KEY = process.env.REACT_APP_GEMINI_API_KEY as string;
2626
if (typeof API_KEY !== "string") {
27-
throw new Error("set REACT_APP_GEMINI_APIK_KEY in .env");
27+
throw new Error("set REACT_APP_GEMINI_API_KEY in .env");
2828
}
2929

3030
const host = "generativelanguage.googleapis.com";

0 commit comments

Comments
 (0)