mirror of
https://github.com/Aider-AI/aider.git
synced 2026-02-06 20:26:38 +01:00
style: fix linting issues and whitespace in models.py
This commit is contained in:
@@ -656,6 +656,7 @@ class ModelInfoManager:
|
||||
if not litellm._lazy_module:
|
||||
try:
|
||||
import requests
|
||||
|
||||
response = requests.get(self.MODEL_INFO_URL, timeout=5)
|
||||
if response.status_code == 200:
|
||||
self.content = response.json()
|
||||
@@ -669,7 +670,7 @@ class ModelInfoManager:
|
||||
def get_model_flexible(self, model):
|
||||
if not self.content:
|
||||
self._update_cache()
|
||||
|
||||
|
||||
if not self.content:
|
||||
return dict()
|
||||
|
||||
@@ -696,6 +697,7 @@ class ModelInfoManager:
|
||||
except Exception:
|
||||
return dict()
|
||||
|
||||
|
||||
model_info_manager = ModelInfoManager()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user