diff options
| author | Craig Jennings <c@cjennings.net> | 2024-04-25 17:05:06 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-04-25 17:05:06 -0500 |
| commit | 692b44d648472fdf52048f6040d223ea7befe755 (patch) | |
| tree | 8ec08f4463640a720476c2901cd9e1cbee418b1f /modules/ai-config.el | |
| parent | a5555afaf09be4c023f49661d48de803b2586927 (diff) | |
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
Diffstat (limited to 'modules/ai-config.el')
| -rw-r--r-- | modules/ai-config.el | 4 |
1 files changed, 2 insertions, 2 deletions
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) |
