README: Update instructions for setting key (#46)

* README.org Update the instructions for getting =gptel-api-key= to
include using the .authinfo file after support was added in 6f951ed.
This commit is contained in:
Troy Rosenberg 2023-04-23 22:55:34 -04:00 committed by GitHub
parent a5be53d5e3
commit 075609544a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,7 +58,13 @@ After installation with =M-x package-install⏎= =gptel=
Procure an [[https://platform.openai.com/account/api-keys][OpenAI API key]].
Optional: Set =gptel-api-key= to the key or to a function that returns the key (more secure).
Optional: Set =gptel-api-key= to the key. Alternatively, you may choose a more secure method such as:
- Storing in =~/.authinfo=. By default, "openai.com" is used as HOST and "apikey" as USER.
#+begin_src authinfo
machine openai.com login apikey password TOKEN
#+end_src
- Setting it to a function that returns the key.
*** In any buffer: