mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
feat: Improve model metadata handling and startup performance
This commit is contained in:
parent
f76d14f613
commit
5755aa3eb8
2 changed files with 9 additions and 2 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue