gptel-transient: Handle empty input when setting temperature

This commit is contained in:
Karthik Chikmagalur 2023-10-24 16:26:07 -07:00
parent 62a6020302
commit 644fc1de2f

View file

@ -231,7 +231,9 @@ Customize `gptel-directives' for task-specific prompts."
(defun gptel--transient-read-variable (prompt initial-input history)
"Read value from minibuffer and interpret the result as a Lisp object."
(read-from-minibuffer prompt initial-input read-expression-map t history))
(condition-case nil
(read-from-minibuffer prompt initial-input read-expression-map t history)
('error nil)))
(transient-define-infix gptel--infix-num-messages-to-send ()
"Number of recent messages to send with each exchange.