refactor: Update Ollama model detection and context window documentation

This commit is contained in:
Paul Gauthier 2024-11-24 16:14:34 -08:00 committed by Paul Gauthier (aider)
parent 7d14d4ade9
commit 325cdfcf57
3 changed files with 16 additions and 26 deletions

View file

@ -938,7 +938,7 @@ class Model(ModelSettings):
self.edit_format = "diff"
self.editor_edit_format = "editor-diff"
self.use_repo_map = True
if "ollama" in model:
if model.startswith("ollama/") or model.startswith("ollama_chat/"):
self.extra_params = dict(num_ctx=8 * 1024)
return # <--