gptel: Appease the byte compiler.
This commit is contained in:
parent
3c01477c37
commit
cee5893d79
2 changed files with 12 additions and 8 deletions
|
@ -31,6 +31,12 @@
|
|||
(:copier nil)
|
||||
(:include gptel-backend)))
|
||||
|
||||
(defvar-local gptel--ollama-context nil
|
||||
"Context for ollama conversations.
|
||||
|
||||
This variable holds the context array for conversations with
|
||||
Ollama models.")
|
||||
|
||||
(cl-defmethod gptel-curl--parse-stream ((_backend gptel-ollama) info)
|
||||
";TODO: "
|
||||
(when (bobp)
|
||||
|
@ -47,7 +53,7 @@
|
|||
(unless (eq done json-false)
|
||||
(with-current-buffer (plist-get info :buffer)
|
||||
(setq gptel--ollama-context (map-elt content :context)))
|
||||
(end-of-buffer))))
|
||||
(goto-char (point-max)))))
|
||||
(error (forward-line 0)))
|
||||
(apply #'concat (nreverse content-strs))))
|
||||
|
||||
|
@ -140,12 +146,6 @@ Example:
|
|||
nil nil #'equal)
|
||||
backend))))
|
||||
|
||||
(defvar-local gptel--ollama-context nil
|
||||
"Context for ollama conversations.
|
||||
|
||||
This variable holds the context array for conversations with
|
||||
Ollama models.")
|
||||
|
||||
(provide 'gptel-ollama)
|
||||
;;; gptel-ollama.el ends here
|
||||
|
||||
|
|
6
gptel.el
6
gptel.el
|
@ -540,7 +540,11 @@ opening the file."
|
|||
position context
|
||||
(stream nil) (in-place nil)
|
||||
(system gptel--system-message))
|
||||
"Request a response from ChatGPT for PROMPT.
|
||||
"Request a response from the `gptel-backend' for PROMPT.
|
||||
|
||||
Note: This function is not fully self-contained. Consider
|
||||
let-binding the parameters `gptel-backend' and `gptel-model'
|
||||
around calls to it as required.
|
||||
|
||||
If PROMPT is
|
||||
- a string, it is used to create a full prompt suitable for
|
||||
|
|
Loading…
Add table
Reference in a new issue