File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments