diff --git a/aider/__init__.py b/aider/__init__.py index 8b887a80f..56b42b0a6 100644 --- a/aider/__init__.py +++ b/aider/__init__.py @@ -12,8 +12,6 @@ if type(__version__) is not str: __version__ = safe_version + "+type" else: try: - print(__version__) - print(safe_version) if version.parse(__version__) < version.parse(safe_version): __version__ = safe_version + "+less" except Exception: diff --git a/aider/llm.py b/aider/llm.py index f750f41af..c01df0ce1 100644 --- a/aider/llm.py +++ b/aider/llm.py @@ -13,6 +13,8 @@ os.environ["LITELLM_MODE"] = "PRODUCTION" # `import litellm` takes 1.5 seconds, defer it! +VERBOSE = False + class LazyLiteLLM: _lazy_module = None @@ -27,6 +29,9 @@ class LazyLiteLLM: if self._lazy_module is not None: return + if VERBOSE: + print("Loading litellm...") + self._lazy_module = importlib.import_module("litellm") self._lazy_module.suppress_debug_info = True