From bb78e2f57f26ea9fe739aad4485c7ec79c1dd58d Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 23 Nov 2024 18:14:30 -0800 Subject: [PATCH] default Ollama num_ctx to 8k --- aider/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/models.py b/aider/models.py index 66ce2df0d..0bca766c6 100644 --- a/aider/models.py +++ b/aider/models.py @@ -938,8 +938,8 @@ class Model(ModelSettings): self.edit_format = "diff" self.editor_edit_format = "editor-diff" self.use_repo_map = True - # if "ollama" in model: - # self.extra_params = dict(num_ctx = 64*1024) + if "ollama" in model: + self.extra_params = dict(num_ctx=8 * 1024) return # <-- # use the defaults