mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
refactor: Extract model info handling into a dedicated class
This commit is contained in:
parent
267872b7e4
commit
a899b0e27e
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue