mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 02:34:29 +00:00
Done with the requested changes
This commit is contained in:
parent
cdcf8ce9f6
commit
5e55ee2402
2 changed files with 5 additions and 2 deletions
|
@ -35,7 +35,10 @@ class JsonFormatter(Formatter):
|
|||
}
|
||||
|
||||
if record.exc_info:
|
||||
try:
|
||||
json_record["stacktrace"] = self.formatException(record.exc_info)
|
||||
except Exception as e:
|
||||
json_record["stacktrace"] = f"Error serializing stacktrace: {str(e)}"
|
||||
|
||||
return json.dumps(json_record)
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ class OpenAILikeError(Exception):
|
|||
self.message = message
|
||||
self.request = request
|
||||
self.response = response
|
||||
super().__init__(self.message) # Call the base class constructor with the parameters it needs
|
||||
super().__init__(message) # Call the base class constructor with the parameters it needs
|
||||
|
||||
|
||||
class OpenAILikeBase:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue