mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 18:54:59 +00:00
refactor: Add dump import and debug output in LiteLLMExceptions
This commit is contained in:
parent
a9dd6e0f3d
commit
3714f9fdbd
1 changed files with 3 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
from aider.dump import dump # noqa: F401
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
|
@ -62,6 +63,7 @@ class LiteLLMExceptions:
|
|||
continue
|
||||
|
||||
ex_info = None
|
||||
# collect these names into a set once, above ai!
|
||||
for exi in EXCEPTIONS:
|
||||
if var == exi.name:
|
||||
ex_info = exi
|
||||
|
@ -71,6 +73,7 @@ class LiteLLMExceptions:
|
|||
raise ValueError(f"{var} is in litellm but not in aider's exceptions list")
|
||||
|
||||
ex = getattr(litellm, var)
|
||||
dump(var, ex)
|
||||
self.exceptions[ex] = ex_info
|
||||
|
||||
def exceptions_tuple(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue