Skip to content

Commit 08264be

Browse files
authored
Merge pull request #299 from Bad-ptr/main
Use chatgpt-shell-request-timeout in requests to ollama
2 parents b5e91ec + 03881f8 commit 08264be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

chatgpt-shell-ollama.el

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
(require 'seq)
3434
(require 'subr-x)
3535

36+
(require 'chatgpt-shell)
37+
3638
;; Muffle warning about free variable.
3739
(defvar chatgpt-shell-models)
3840
(declare-function chatgpt-shell-crop-context "chatgpt-shell")
@@ -179,6 +181,7 @@ replace all models with locally installed ollama models."
179181
(list (cons command nil)))
180182
:settings settings)
181183
:filter #'chatgpt-shell-ollama--extract-ollama-response
184+
:timeout chatgpt-shell-request-timeout
182185
:shell shell))
183186

184187
(cl-defun chatgpt-shell-ollama--make-url (&key _command _model _settings)

0 commit comments

Comments
 (0)