From 0c384c528269b1e332f1bdbecbc48ad71fed8711 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Thu, 9 Feb 2023 03:35:27 +0200 Subject: emacs: ChatGPT fix --- .emacs.d/emacs.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.emacs.d/emacs.org') 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)))) -- cgit v1.2.3