Skip to content

Commit

Permalink
Add usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Feb 11, 2024
1 parent 92972cd commit 8ab18a6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@ interactable commands you can use, and those are mostly examples.*

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

## 🔨 Usage

You will need to set up your API key before you can use this library.

```elisp
(setq google-gemini-key "[YOUR API KEY]")
```

Alternatively you can configure a function to retrieve the key from some
external source. A function, `google-gemini-key-auth-source` is provided to
retrieve the key from an auth-source entry under the `:host` key `api.google-gemini.com`

```elisp
(setq google-gemini-key #'google-gemini-key-auth-source)
```

## 🛠️ Contribute

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

0 comments on commit 8ab18a6

Please sign in to comment.