From a899b0e27e4576dfd5d60610788aed1b9d3aed16 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 30 Oct 2024 13:17:47 -0700 Subject: [PATCH] refactor: Extract model info handling into a dedicated class --- aider/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aider/models.py b/aider/models.py index f0d9b7131..191f99873 100644 --- a/aider/models.py +++ b/aider/models.py @@ -636,7 +636,8 @@ model_info_url = ( "https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json" ) - +#ai refactor get_model_flexible & get_model_info into a class! +# the class should load the cache_file once, on __init__ def get_model_flexible(model, content): info = content.get(model, dict()) if info: