aider icon indicating copy to clipboard operation
aider copied to clipboard

Fix gemini weak model

Open Dharunika-07-N opened this issue 1 month ago • 1 comments

Added graceful fallback for weak model when not found

Changes

  • Modified get_weak_model() in models.py:
    • Added a try-except block around the creation of the weak model.
    • If the weak model is missing (404), a warning is printed and self.weak_model defaults to the main model.
  • Ensures that Aider continues to work even if the weak model is unavailable.

Dharunika-07-N avatar Oct 10 '25 03:10 Dharunika-07-N

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Oct 10 '25 03:10 CLAassistant