mirror of
https://github.com/Aider-AI/aider.git
synced 2026-02-06 20:26:38 +01:00
feat: add get_ex_info method to lookup exception info
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user