aboutsummaryrefslogtreecommitdiff
path: root/tests/testutil-ai-config.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-10 02:43:48 -0500
committerCraig Jennings <c@cjennings.net>2026-05-10 02:43:48 -0500
commit0248afe222a0722ec336e8c09269612eb773702b (patch)
tree0108507c9b92616dca51b6c575137785f2f8d4dc /tests/testutil-ai-config.el
parentc78574ab7a7bd0f9a6e4a61c6cdcd196257cff8e (diff)
downloaddotemacs-0248afe222a0722ec336e8c09269612eb773702b.tar.gz
dotemacs-0248afe222a0722ec336e8c09269612eb773702b.zip
Move GPTel tool loading into AI config
Move the local GPTel tool wiring out of init.el and into ai-config. The tools directory and feature list are now configurable, missing optional tools are non-fatal, and focused tests cover the loading behavior.
Diffstat (limited to 'tests/testutil-ai-config.el')
-rw-r--r--tests/testutil-ai-config.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/testutil-ai-config.el b/tests/testutil-ai-config.el
index e8953389..c7486222 100644
--- a/tests/testutil-ai-config.el
+++ b/tests/testutil-ai-config.el
@@ -7,6 +7,12 @@
;;; Code:
+(setq load-prefer-newer t)
+
+;; Keep ai-config tests isolated from personal optional GPTel tool files.
+(defvar cj/gptel-tools-directory (make-temp-file "gptel-tools-empty-" t))
+(defvar cj/gptel-local-tool-features nil)
+
;; Pre-cache API keys so auth-source is never consulted
(defvar cj/anthropic-api-key-cached "test-anthropic-key")
(defvar cj/openai-api-key-cached "test-openai-key")