branch: elpa/gptel
commit f76cac7384fddca9f9033dccc128185a3992fd24
Author: Karthik Chikmagalur <[email protected]>
Commit: Karthik Chikmagalur <[email protected]>
gptel-request: Fix gptel-backend customization type
* gptel-request.el (gptel-backend): Adjust the backend type to
allow a list of symbols as a valid plist type. (#556)
---
gptel-request.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/gptel-request.el b/gptel-request.el
index 4e13926133..0cdd6aecad 100644
--- a/gptel-request.el
+++ b/gptel-request.el
@@ -392,7 +392,7 @@ services, specifying some fields may be required. Examples:
(setopt gptel-backend \\='(gptel-ollama \"Ollama\"
:host \"localhost:11434\"
- :models \\='(qwen3:4b llama3.1:8b)
+ :models (qwen3:4b llama3.1:8b)
:stream t))
This list of keys is non-exhaustive. Some backends (such as
@@ -456,9 +456,11 @@ examples. Once registered, backends may be retrieved using
:tag "No backend")
(cons :tag "(BACKEND-TYPE NAME . PLIST)" ;accommodate (gptel-openai
"chatgpt" . plist)
,types (cons string
- (plist :value-type (choice string symbol function))))
+ (plist :value-type (choice string symbol function
+ (repeat symbol)))))
(cons :tag "(BACKEND-TYPE . PLIST)" ;accommodate (gptel-openai :name
"chatgpt" . plist)
- ,types (plist :value-type (choice string symbol function)))))
+ ,types (plist :value-type (choice string symbol function
+ (repeat symbol))))))
:get
(lambda (sym)
(when-let* ((backend (default-toplevel-value sym))