gptel-ollama: Use default host in gptel-make-ollama

This commit is contained in:
Karthik Chikmagalur 2024-01-10 09:22:34 -08:00
parent 8ec233d79c
commit bea31e33e2

View file

@ -101,14 +101,15 @@ Ollama models.")
;;;###autoload ;;;###autoload
(cl-defun gptel-make-ollama (cl-defun gptel-make-ollama
(name &key host header key models stream (name &key header key models stream
(host "localhost:11434")
(protocol "http") (protocol "http")
(endpoint "/api/generate")) (endpoint "/api/generate"))
"Register an Ollama backend for gptel with NAME. "Register an Ollama backend for gptel with NAME.
Keyword arguments: Keyword arguments:
HOST is where Ollama runs (with port), typically localhost:11434 HOST is where Ollama runs (with port), defaults to localhost:11434
MODELS is a list of available model names. MODELS is a list of available model names.