branch: elpa/gptel
commit df0b424ea1bf4b4aa58c1ed6bc3a985fe13bf0ba
Author: Karthik Chikmagalur <[email protected]>
Commit: Karthik Chikmagalur <[email protected]>

    gptel-ollama: Add num_ctx option
    
    * gptel-ollama.el (gptel--request-data): Add a num_ctx parameter
    corresponding to `gptel-max-tokens` for Ollama requests. Addresses
---
 gptel-ollama.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gptel-ollama.el b/gptel-ollama.el
index 3c76837f5f..d50324adc8 100644
--- a/gptel-ollama.el
+++ b/gptel-ollama.el
@@ -87,7 +87,7 @@ Intended for internal use only.")
                        gptel-temperature)))
     (when gptel-max-tokens
       (setq options-plist
-            (plist-put options-plist :num_predict
+            (plist-put options-plist :num_ctx
                        gptel-max-tokens)))
     (when options-plist
       (plist-put prompts-plist :options options-plist))

Reply via email to