gptel-transient: Set model when redirecting to new buffer
* gptel-transient.el (gptel--suffix-send): When creating a new session to redirect the response to, ensure that gptel-model is set correctly in that buffer.
This commit is contained in:
parent
ce75072f9d
commit
c9d362a3e9
1 changed files with 2 additions and 0 deletions
|
@ -362,6 +362,7 @@ will get progressively longer!"
|
|||
(in-place (and (member "i" args) t))
|
||||
(output-to-other-buffer-p)
|
||||
(backend gptel-backend)
|
||||
(model gptel-model)
|
||||
(backend-name (gptel-backend-name gptel-backend))
|
||||
(buffer) (position)
|
||||
(callback) (gptel-buffer-name)
|
||||
|
@ -418,6 +419,7 @@ will get progressively longer!"
|
|||
(gptel--at-word-end (point)))))))
|
||||
(with-current-buffer buffer
|
||||
(setq gptel-backend backend)
|
||||
(setq gptel-model model)
|
||||
(gptel--update-status " Waiting..." 'warning)
|
||||
(setq position (point)))
|
||||
(setq output-to-other-buffer-p t))
|
||||
|
|
Loading…
Add table
Reference in a new issue