feat: Improve model metadata handling and startup performance

This commit is contained in:
Paul Gauthier 2025-02-04 16:34:07 -08:00 committed by Paul Gauthier (aider)
parent f76d14f613
commit 5755aa3eb8
2 changed files with 9 additions and 2 deletions

View file

@ -522,9 +522,15 @@ class TestMain(TestCase):
os.unlink(external_file_path)
def test_model_metadata_file(self):
from aider.models import model_info_manager
# Re-init so we don't have old data lying around from earlier test cases
from aider import models
models.model_info_manager = models.ModelInfoManager()
from aider.llm import litellm
litellm._lazy_module = None
model_info_manager.local_model_metadata = {}
with GitTemporaryDirectory():
metadata_file = Path(".aider.model.metadata.json")