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))
|
(in-place (and (member "i" args) t))
|
||||||
(output-to-other-buffer-p)
|
(output-to-other-buffer-p)
|
||||||
(backend gptel-backend)
|
(backend gptel-backend)
|
||||||
|
(model gptel-model)
|
||||||
(backend-name (gptel-backend-name gptel-backend))
|
(backend-name (gptel-backend-name gptel-backend))
|
||||||
(buffer) (position)
|
(buffer) (position)
|
||||||
(callback) (gptel-buffer-name)
|
(callback) (gptel-buffer-name)
|
||||||
|
@ -418,6 +419,7 @@ will get progressively longer!"
|
||||||
(gptel--at-word-end (point)))))))
|
(gptel--at-word-end (point)))))))
|
||||||
(with-current-buffer buffer
|
(with-current-buffer buffer
|
||||||
(setq gptel-backend backend)
|
(setq gptel-backend backend)
|
||||||
|
(setq gptel-model model)
|
||||||
(gptel--update-status " Waiting..." 'warning)
|
(gptel--update-status " Waiting..." 'warning)
|
||||||
(setq position (point)))
|
(setq position (point)))
|
||||||
(setq output-to-other-buffer-p t))
|
(setq output-to-other-buffer-p t))
|
||||||
|
|
Loading…
Add table
Reference in a new issue