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:
parent
a5be53d5e3
commit
075609544a
1 changed files with 7 additions and 1 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue