mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 10:45:00 +00:00
refactor: improve model name redaction in analytics and model info handling
This commit is contained in:
parent
a565a63436
commit
e94e60b1d2
3 changed files with 8 additions and 5 deletions
|
@ -691,9 +691,10 @@ class ModelInfoManager:
|
|||
return dict()
|
||||
|
||||
def get_model_info(self, model):
|
||||
info = self.get_model_from_cached_json_db(model)
|
||||
if info:
|
||||
return info
|
||||
if not litellm._lazy_module:
|
||||
info = self.get_model_from_cached_json_db(model)
|
||||
if info:
|
||||
return info
|
||||
|
||||
# If all else fails, do it the slow way...
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue