mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
_get_exception_class_name
This commit is contained in:
parent
c402db9057
commit
f402e9bbd1
2 changed files with 7 additions and 5 deletions
|
@ -1148,7 +1148,9 @@ class PrometheusLogger(CustomLogger):
|
|||
|
||||
@staticmethod
|
||||
def _get_exception_class_name(exception: Exception) -> str:
|
||||
exception_class_name = getattr(exception, "llm_provider") or ""
|
||||
exception_class_name = ""
|
||||
if hasattr(exception, "llm_provider"):
|
||||
exception_class_name = getattr(exception, "llm_provider") or ""
|
||||
|
||||
# pretty print the provider name on prometheus
|
||||
# eg. `openai` -> `Openai.`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue