mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
do not swallow litellm.get_model_info() exceptions #2318
This commit is contained in:
parent
44063590e2
commit
0e53198c59
1 changed files with 3 additions and 1 deletions
|
@ -778,7 +778,9 @@ class ModelInfoManager:
|
|||
# If all else fails, do it the slow way...
|
||||
try:
|
||||
return litellm.get_model_info(model)
|
||||
except Exception:
|
||||
except Exception as ex:
|
||||
if "model_prices_and_context_window.json" not in str(ex):
|
||||
print(str(ex))
|
||||
return dict()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue