We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 568a406 commit 952bf76Copy full SHA for 952bf76
adala/runtimes/_litellm.py
@@ -84,7 +84,9 @@ def _format_error_dict(e: Exception) -> dict:
84
def _log_llm_exception(e) -> dict:
85
dct = _format_error_dict(e)
86
base_error = f"Inference error {dct['_adala_message']}"
87
- tb = traceback.format_exc()
+ tb = "".join(
88
+ traceback.format_exception(e)
89
+ ) # format_exception return list of strings ending in new lines
90
logger.error(f"{base_error}\nTraceback:\n{tb}")
91
return dct
92
0 commit comments