From bea31e33e227438809cd00cc3d67488a6b31f8c4 Mon Sep 17 00:00:00 2001 From: Karthik Chikmagalur Date: Wed, 10 Jan 2024 09:22:34 -0800 Subject: [PATCH] gptel-ollama: Use default host in gptel-make-ollama --- gptel-ollama.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gptel-ollama.el b/gptel-ollama.el index 08b6db8..605b951 100644 --- a/gptel-ollama.el +++ b/gptel-ollama.el @@ -101,14 +101,15 @@ Ollama models.") ;;;###autoload (cl-defun gptel-make-ollama - (name &key host header key models stream + (name &key header key models stream + (host "localhost:11434") (protocol "http") (endpoint "/api/generate")) "Register an Ollama backend for gptel with NAME. 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.