branch: externals/ellama commit cd001de997733cf54c3f461360d983b349ca5df2 Author: Sergey Kostyaev <sskosty...@gmail.com> Commit: Sergey Kostyaev <sskosty...@gmail.com>
Ensure `llm-ollama` dependency are loaded Ensured that `llm-ollama` is required when constructing Ollama providers, preventing potential errors due to unloaded modules. Updated function calls and declarations accordingly. --- NEWS.org | 1 + ellama.el | 3 +++ 2 files changed, 4 insertions(+) diff --git a/NEWS.org b/NEWS.org index 3c8506d2ca..54ff3bca5c 100644 --- a/NEWS.org +++ b/NEWS.org @@ -18,6 +18,7 @@ lambda. Also, updated the header line format to display the correct command names using ~substitute-command-keys~. - Removed redisplay call to prevent flickering. +- Ensure ~llm-ollama~ dependency are loaded. * Version 1.4.2 - Fixed the auto-scroll logic in ~ellama.el~ to ensure it correctly sets and resets ~stop-scroll~ based on cursor position changes. diff --git a/ellama.el b/ellama.el index becf0e4920..b51db7d737 100644 --- a/ellama.el +++ b/ellama.el @@ -2989,6 +2989,7 @@ Call CALLBACK on result list of strings. ARGS contains keys for fine control. (llm-ollama-host ellama-provider))) (port (when (llm-ollama-p ellama-provider) (llm-ollama-port ellama-provider)))) + (require 'llm-ollama) (if host (make-llm-ollama :chat-model model-name :embedding-model model-name :host host :port port) @@ -3117,6 +3118,8 @@ Call CALLBACK on result list of strings. ARGS contains keys for fine control. (defun ellama-construct-ollama-provider-from-transient () "Make provider with ollama mode in transient menu." + (declare-function make-llm-ollama "ext:llm-ollama") + (require 'llm-ollama) (make-llm-ollama :chat-model ellama-transient-ollama-model-name :default-chat-temperature ellama-transient-temperature