From 0e53198c596bec7ebc331ed7e52a6fc8c1238599 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 11 Nov 2024 15:15:24 -0800 Subject: [PATCH] do not swallow litellm.get_model_info() exceptions #2318 --- aider/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aider/models.py b/aider/models.py index 95a4483a0..802a351e1 100644 --- a/aider/models.py +++ b/aider/models.py @@ -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()