mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
style: fix linting issues and whitespace in models.py
This commit is contained in:
parent
3d5a4d9303
commit
aba8b5d00a
1 changed files with 3 additions and 1 deletions
|
@ -656,6 +656,7 @@ class ModelInfoManager:
|
||||||
if not litellm._lazy_module:
|
if not litellm._lazy_module:
|
||||||
try:
|
try:
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
response = requests.get(self.MODEL_INFO_URL, timeout=5)
|
response = requests.get(self.MODEL_INFO_URL, timeout=5)
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
self.content = response.json()
|
self.content = response.json()
|
||||||
|
@ -669,7 +670,7 @@ class ModelInfoManager:
|
||||||
def get_model_flexible(self, model):
|
def get_model_flexible(self, model):
|
||||||
if not self.content:
|
if not self.content:
|
||||||
self._update_cache()
|
self._update_cache()
|
||||||
|
|
||||||
if not self.content:
|
if not self.content:
|
||||||
return dict()
|
return dict()
|
||||||
|
|
||||||
|
@ -696,6 +697,7 @@ class ModelInfoManager:
|
||||||
except Exception:
|
except Exception:
|
||||||
return dict()
|
return dict()
|
||||||
|
|
||||||
|
|
||||||
model_info_manager = ModelInfoManager()
|
model_info_manager = ModelInfoManager()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue