diff options
author | Thanos Apollo <[email protected]> | 2023-02-09 03:35:27 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-02-09 03:35:27 +0200 |
commit | 0c384c528269b1e332f1bdbecbc48ad71fed8711 (patch) | |
tree | 9d07c333395514a9ac40680f591ec2f85033cb8e /.emacs.d | |
parent | 87cd7bb8a4e70100a2a29cf6460696142166c356 (diff) |
emacs: ChatGPT fix
Diffstat (limited to '.emacs.d')
-rw-r--r-- | .emacs.d/emacs.org | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.emacs.d/emacs.org b/.emacs.d/emacs.org index 7a3a7c5..74bfe80 100644 --- a/.emacs.d/emacs.org +++ b/.emacs.d/emacs.org @@ -788,7 +788,7 @@ The region is BEG and until END" The environment variable OPENAI_API_KEY is used as your API key You can register an account here https://beta.openai.com/docs/introduction/key-concepts" - (let* ((api-key (getenv "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")) + (let* ((api-key (getenv secret-api)) (url-request-method (encode-coding-string "POST" 'us-ascii)) (url-request-extra-headers `(("Content-Type" . "application/json") ("Authorization" . ,(format "Bearer %s" api-key)))) |