From 93f2387d1bac08599b2105b09c58bbc539616440 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Wed, 5 Mar 2025 17:06:56 -0800 Subject: [PATCH] refactor: Move `check_pip_install_extra` import to top of file --- aider/models.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aider/models.py b/aider/models.py index 4d51bd0a9..fda8fc8f8 100644 --- a/aider/models.py +++ b/aider/models.py @@ -19,6 +19,7 @@ from PIL import Image from aider.dump import dump # noqa: F401 from aider.llm import litellm from aider.sendchat import ensure_alternating_roles, sanity_check_messages +from aider.utils import check_pip_install_extra RETRY_TIMEOUT = 60 @@ -791,13 +792,11 @@ def sanity_check_model(io, model): def check_for_dependencies(io, model_name): """ Check for model-specific dependencies and install them if needed. - + Args: io: The IO object for user interaction model_name: The name of the model to check dependencies for """ - from aider.utils import check_pip_install_extra - # Check if this is a Bedrock model and ensure boto3 is installed if model_name.startswith("bedrock/"): check_pip_install_extra(