summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/emacs.org2
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))))