mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
refactor: Move check_pip_install_extra
import to top of file
This commit is contained in:
parent
207a631a65
commit
93f2387d1b
1 changed files with 2 additions and 3 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue