gptel-transient: Handle empty input when setting temperature
This commit is contained in:
parent
62a6020302
commit
644fc1de2f
1 changed files with 3 additions and 1 deletions
|
@ -231,7 +231,9 @@ Customize `gptel-directives' for task-specific prompts."
|
||||||
|
|
||||||
(defun gptel--transient-read-variable (prompt initial-input history)
|
(defun gptel--transient-read-variable (prompt initial-input history)
|
||||||
"Read value from minibuffer and interpret the result as a Lisp object."
|
"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 ()
|
(transient-define-infix gptel--infix-num-messages-to-send ()
|
||||||
"Number of recent messages to send with each exchange.
|
"Number of recent messages to send with each exchange.
|
||||||
|
|
Loading…
Add table
Reference in a new issue