mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 02:34:59 +00:00
feat: add get_ex_info method to lookup exception info
This commit is contained in:
parent
8bc9ebf2aa
commit
bba9ca3d5a
1 changed files with 4 additions and 0 deletions
|
@ -88,6 +88,10 @@ class LiteLLMExceptions:
|
|||
def exceptions_tuple(self):
|
||||
return tuple(self.exceptions)
|
||||
|
||||
def get_ex_info(self, ex):
|
||||
"""Return the ExInfo for a given exception instance"""
|
||||
return self.exceptions.get(ex.__class__)
|
||||
|
||||
|
||||
|
||||
litellm_ex = LiteLLMExceptions()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue