From 692b44d648472fdf52048f6040d223ea7befe755 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 25 Apr 2024 17:05:06 -0500 Subject: removed unnecessary hardcoded paths & fixed a typo - defined constants for all commonly used paths - replaced hardcoded instances throughout the config with the variables - fixed typo in scripts/reset-to-first-launch.sj --- modules/ai-config.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/ai-config.el') diff --git a/modules/ai-config.el b/modules/ai-config.el index e4ef932e..01b089ce 100644 --- a/modules/ai-config.el +++ b/modules/ai-config.el @@ -50,8 +50,8 @@ . "You are a large language model and a conversation partner. Respond concisely."))) - ;; grab the secret from ~/.authinfo.gpg - (setq auth-sources '((:source "~/.authinfo.gpg"))) + ;; grab the secret from the auth file + (setq auth-sources `((:source ,authinfo-file))) (setq gptel-api-key (auth-source-pick-first-password :host "api.openai.com"))) (provide 'ai-config) -- cgit v1.2.3