mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 18:54:59 +00:00
style: Remove unnecessary blank lines in ModelInfoManager class
This commit is contained in:
parent
5e48f6898d
commit
44e5525e6f
1 changed files with 5 additions and 5 deletions
|
@ -211,7 +211,7 @@ class ModelInfoManager:
|
|||
|
||||
def get_model_info(self, model):
|
||||
cached_info = self.get_model_from_cached_json_db(model)
|
||||
|
||||
|
||||
litellm_info = None
|
||||
if litellm._lazy_module or not cached_info:
|
||||
try:
|
||||
|
@ -219,15 +219,15 @@ class ModelInfoManager:
|
|||
except Exception as ex:
|
||||
if "model_prices_and_context_window.json" not in str(ex):
|
||||
print(str(ex))
|
||||
|
||||
|
||||
if litellm_info:
|
||||
return litellm_info
|
||||
|
||||
|
||||
if not cached_info and model.startswith("openrouter/"):
|
||||
openrouter_info = self.fetch_openrouter_model_info(model)
|
||||
if openrouter_info:
|
||||
return openrouter_info
|
||||
|
||||
|
||||
return cached_info
|
||||
|
||||
|
||||
|
@ -264,7 +264,7 @@ class ModelInfoManager:
|
|||
except Exception as e:
|
||||
print("Error fetching openrouter info:", str(e))
|
||||
return {}
|
||||
|
||||
|
||||
model_info_manager = ModelInfoManager()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue