mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
fix: Remove hardcoded reminder and add Qwen 2.5 coder model configuration
This commit is contained in:
parent
bbfac316fc
commit
400514ff10
1 changed files with 6 additions and 1 deletions
|
@ -722,7 +722,6 @@ MODEL_SETTINGS = [
|
||||||
editor_model_name="openrouter/qwen/qwen-2.5-coder-32b-instruct",
|
editor_model_name="openrouter/qwen/qwen-2.5-coder-32b-instruct",
|
||||||
editor_edit_format="editor-diff",
|
editor_edit_format="editor-diff",
|
||||||
use_repo_map=True,
|
use_repo_map=True,
|
||||||
reminder="user",
|
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -881,6 +880,12 @@ class Model(ModelSettings):
|
||||||
self.use_temperature = False
|
self.use_temperature = False
|
||||||
self.streaming = 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
|
# use the defaults
|
||||||
if self.edit_format == "diff":
|
if self.edit_format == "diff":
|
||||||
self.use_repo_map = True
|
self.use_repo_map = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue