Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aider/help_pats.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
".jekyll-metadata",
"Gemfile.lock",
"Gemfile",
"_config.yml",
"_.aider\config.yml",
"**/OLD/**",
"OLD/**",
]
2 changes: 1 addition & 1 deletion aider/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ def get_io(pretty):

# We can't know the git repo for sure until after parsing the args.
# If we guessed wrong, reparse because that changes things like
# the location of the config.yml and history files.
# the location of the .aider\config.yml and history files.
if args.git and not force_git_root and git is not None:
right_repo_root = guessed_wrong_repo(io, git_root, fnames, git_dname)
if right_repo_root:
Expand Down
22 changes: 13 additions & 9 deletions aider/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,20 +569,24 @@ def get_weak_model(self, provided_weak_model_name):
if provided_weak_model_name:
self.weak_model_name = provided_weak_model_name

if not self.weak_model_name:
self.weak_model = self
return
if not self.weak_model_name or self.weak_model_name == self.name:
self.weak_model = self
return self.weak_model

if self.weak_model_name == self.name:
try:
self.weak_model = Model(
self.weak_model_name,
weak_model=False,
)
except Exception as e:
# If the model is not found (404 error), fall back gracefully
print(f"Warning: Could not load weak model '{self.weak_model_name}'. Falling back to main model. Error: {e}")
self.weak_model = self
return

self.weak_model = Model(
self.weak_model_name,
weak_model=False,
)
return self.weak_model



def commit_message_models(self):
return [self.weak_model, self]

Expand Down
4 changes: 2 additions & 2 deletions aider/special.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"bitbucket-pipelines.yml",
"appveyor.yml",
"circle.yml",
".circleci/config.yml",
".circleci/.aider\config.yml",
".github/dependabot.yml",
"codecov.yml",
".coveragerc",
Expand Down Expand Up @@ -156,7 +156,7 @@
"codecov.yml",
# Documentation
"mkdocs.yml",
"_config.yml",
"_.aider\config.yml",
"book.toml",
"readthedocs.yml",
".readthedocs.yaml",
Expand Down
Empty file added chat
Empty file.
Empty file added init
Empty file.
2 changes: 1 addition & 1 deletion tests/basic/test_find_or_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def process_markdown(filename, fh):
class TestFindOrBlocks(unittest.TestCase):
def test_process_markdown(self):
# Path to the input markdown file
input_file = "tests/fixtures/chat-history.md"
input_file = "tests/fixtures/.aider\chat-history.md"

# Path to the expected output file
expected_output_file = "tests/fixtures/chat-history-search-replace-gold.txt"
Expand Down