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

    gptel-ollama: Revert "Add num_ctx option"
    
    gptel-ollama.el (gptel--request-data): This reverts commit
    df0b424ea1bf4b4aa58c1ed6bc3a985fe13bf0ba.  `gptel-max-tokens` is
    meant for controlling the response size, not the context window
    size.
---
 gptel-ollama.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gptel-ollama.el b/gptel-ollama.el
index d50324adc8..3c76837f5f 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_ctx
+            (plist-put options-plist :num_predict
                        gptel-max-tokens)))
     (when options-plist
       (plist-put prompts-plist :options options-plist))

Reply via email to