fix: Remove hardcoded reminder and add Qwen 2.5 coder model configuration

This commit is contained in:
Paul Gauthier 2024-11-13 12:36:28 -08:00 committed by Paul Gauthier (aider)
parent bbfac316fc
commit 400514ff10

View file

@ -722,7 +722,6 @@ MODEL_SETTINGS = [
editor_model_name="openrouter/qwen/qwen-2.5-coder-32b-instruct",
editor_edit_format="editor-diff",
use_repo_map=True,
reminder="user",
),
]
@ -881,6 +880,12 @@ class Model(ModelSettings):
self.use_temperature = False
self.streaming = False
if "qwen" in model and "coder" in model and ("2.5" in model or "2-5" in model):
"openrouter/qwen/qwen-2.5-coder-32b-instruct",
self.edit_format = "diff"
self.editor_edit_format = "editor-diff"
self.use_repo_map = True
# use the defaults
if self.edit_format == "diff":
self.use_repo_map = True