mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-07 05:05:01 +00:00
refactor: Update Ollama model detection and context window documentation
This commit is contained in:
parent
7d14d4ade9
commit
325cdfcf57
3 changed files with 16 additions and 26 deletions
|
@ -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 # <--
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue