summaryrefslogtreecommitdiff
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
commita18be7ddb2ac8d57c9adfc5c6eadc020ca42c9d4 (patch)
tree7d16685c792aa235ba6eab248ce8d3a523a0fd03 /tests/testutil-ai-config.el
parentfa45dafd048efc124243b02ef5b267ee8f974e9b (diff)
downloaddotemacs-a18be7ddb2ac8d57c9adfc5c6eadc020ca42c9d4.tar.gz
dotemacs-a18be7ddb2ac8d57c9adfc5c6eadc020ca42c9d4.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")