branch: externals/minuet
commit 32085f5efcee417c2adae58ca3191f36d9c27cbd
Author: Milan Glacier <d...@milanglacier.com>
Commit: Milan Glacier <d...@milanglacier.com>

    fix: fix api-key fetching for OpenAI provider.
---
 minuet.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/minuet.el b/minuet.el
index 19f2bda843..6e909a0cd4 100644
--- a/minuet.el
+++ b/minuet.el
@@ -841,7 +841,7 @@ to be called when completion items arrive."
       (plz 'post (plist-get options :end-point)
           :headers `(("Content-Type" . "application/json")
                      ("Accept" . "application/json")
-                     ("Authorization" . ,(concat "Bearer " (getenv (plist-get 
options :api-key)))))
+                     ("Authorization" . ,(concat "Bearer " 
(minuet--get-api-key (plist-get options :api-key)))))
           :timeout minuet-request-timeout
           :body (json-serialize `(,@(plist-get options :optional)
                                   :stream t

Reply via email to