Skip to content

Commit 8ab18a6

Browse files
committed
Add usage
1 parent 92972cd commit 8ab18a6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,22 @@ interactable commands you can use, and those are mostly examples.*
1616

1717
- [Google AI for Developers - REST API](https://ai.google.dev/tutorials/rest_quickstart)
1818

19+
## 🔨 Usage
20+
21+
You will need to set up your API key before you can use this library.
22+
23+
```elisp
24+
(setq google-gemini-key "[YOUR API KEY]")
25+
```
26+
27+
Alternatively you can configure a function to retrieve the key from some
28+
external source. A function, `google-gemini-key-auth-source` is provided to
29+
retrieve the key from an auth-source entry under the `:host` key `api.google-gemini.com`
30+
31+
```elisp
32+
(setq google-gemini-key #'google-gemini-key-auth-source)
33+
```
34+
1935
## 🛠️ Contribute
2036

2137
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)

0 commit comments

Comments
 (0)