fix black formatting

Apply the repo-pinned Black 24.10.0 formatting expected by CI.

Made-with: Cursor
This commit is contained in:
Milan 2026-04-27 15:38:56 +03:00
parent 73e15e0124
commit 7306fb1f87
No known key found for this signature in database

View file

@ -978,8 +978,10 @@ class Logging(LiteLLMLoggingBaseClass):
try:
# [Non-blocking Extra Debug Information in metadata]
if turn_off_message_logging is True:
_metadata["raw_request"] = "redacted by litellm. \
_metadata["raw_request"] = (
"redacted by litellm. \
'litellm.turn_off_message_logging=True'"
)
else:
curl_command = self._get_request_curl_command(
api_base=additional_args.get("api_base", ""),
@ -1013,8 +1015,12 @@ class Logging(LiteLLMLoggingBaseClass):
] = RawRequestTypedDict(
error=str(e),
)
_metadata["raw_request"] = "Unable to Log \
raw request: {}".format(str(e))
_metadata["raw_request"] = (
"Unable to Log \
raw request: {}".format(
str(e)
)
)
if getattr(self, "logger_fn", None) and callable(self.logger_fn):
try:
self.logger_fn(