branch: elpa/gptel
commit 8a6769c9748df0e840aa84a7b5573e4cd5acd0b0
Author: Karthik Chikmagalur <[email protected]>
Commit: Karthik Chikmagalur <[email protected]>
gptel-request: Adjust gptel-backend customization type
* gptel-request.el (gptel-backend): Change the customization type
to allow the gptel-backend type itself, in addition to the newly
added list specification. (#1267)
---
gptel-request.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gptel-request.el b/gptel-request.el
index d4ed8887e1..4e13926133 100644
--- a/gptel-request.el
+++ b/gptel-request.el
@@ -452,7 +452,8 @@ examples. Once registered, backends may be retrieved using
(const gptel-deepseek)
(const gptel-privategpt))))
`(choice
- (const :tag "No backend" nil)
+ (restricted-sexp :match-alternatives (gptel-backend-p 'nil)
+ :tag "No backend")
(cons :tag "(BACKEND-TYPE NAME . PLIST)" ;accommodate (gptel-openai
"chatgpt" . plist)
,types (cons string
(plist :value-type (choice string symbol function))))